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