I'm working on understanding some topics from contract law -- specifically about delegation (a type of contract assignment). Let's say the client bought a kit to build something and then realized he didn't have the tools or skills needed to put it together, so he hires A to build it for him. (Craftsmanship isn't an issue here.)
Now A delegates the job to B. B does the job and tries to deliver the finished object to the client, who gets in a snit because he wasn't told about the delegation (he didn't realize they didn't have to tell him). The client refuses to accept the delivery and doesn't pay.
Whom can B sue for nonpayment? I'm thinking both A and the client but I'm not sure.
If B does shoddy work, can the client sue B? (Obviously, the client can sue A, but I'm not sure if he can also sue B.)