public Coin(IPerson issuer, IPerson recipient, LaborAgreement laborAgreement) { Id = new Id(); Issuer = issuer; Recipient = recipient; Labor = laborAgreement; }
public Coin Build() { var laborAgreement = new LaborAgreement(_laborDescription, _laborHours, _equivalentProduct); return(new Coin(_issuer, _recipient, laborAgreement)); }