Esempio n. 1
0
 public void VerifyPricing()
 {
     if (!Progress.WasPricingVerified())
     {
         Apply(PricingVerified.Instance(Id, Client, Expectations));
     }
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public void When(PricingVerified pricingVerified)
 {
     this.Progress = Progress.VerifiedForPricing();
 }