public void VerifyPricing() { if (!Progress.WasPricingVerified()) { Apply(PricingVerified.Instance(Id, Client, Expectations)); } }
public static PricingVerified Instance( Id proposalId, Client client, Expectations expectations) { PricingVerified pricingVerified = new PricingVerified { ProposalId = proposalId.Value, ClientId = client.Id.Value, Price = expectations.Price }; return(pricingVerified); }
public void When(PricingVerified pricingVerified) { this.Progress = Progress.VerifiedForPricing(); }