Ejemplo n.º 1
0
        public static PricingVerified Instance(Id proposalId, long price)
        {
            PricingVerified pricingVerified = new PricingVerified
            {
                OriginatorId = proposalId.Value,
                Price        = price
            };

            return(pricingVerified);
        }
Ejemplo n.º 2
0
 private PricingAnalysis(Id pricedItemId, long price)
 {
     Apply(PricingVerified.Instance(pricedItemId, price));
 }
Ejemplo n.º 3
0
 public void When(PricingVerified pricingVerified)
 {
     this.Id       = Id.FromExisting(pricingVerified.OriginatorId);
     this.Price    = pricingVerified.Price;
     this.Verified = true;
 }