示例#1
0
        public static PricingVerified Instance(Id proposalId, long price)
        {
            PricingVerified pricingVerified = new PricingVerified
            {
                OriginatorId = proposalId.Value,
                Price        = price
            };

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