Пример #1
0
 // Business constructor
 public CakeDetail(
     Order order
     ,CakeSize size
     ,CakeFlavor cakeFlavor
     ,FrostingFlavor frostingFlavor
     ,FrostingColor mainColor
     ,FrostingColor decorationColor
     ,IEnumerable<CakeDetail> prior
     ,string message
     ,string cakeInstructions
     )
 {
     InitializeResults();
     _order = new PredecessorObj<Order>(this, RoleOrder, order);
     _size = new PredecessorObj<CakeSize>(this, RoleSize, size);
     _cakeFlavor = new PredecessorObj<CakeFlavor>(this, RoleCakeFlavor, cakeFlavor);
     _frostingFlavor = new PredecessorObj<FrostingFlavor>(this, RoleFrostingFlavor, frostingFlavor);
     _mainColor = new PredecessorObj<FrostingColor>(this, RoleMainColor, mainColor);
     _decorationColor = new PredecessorObj<FrostingColor>(this, RoleDecorationColor, decorationColor);
     _prior = new PredecessorList<CakeDetail>(this, RolePrior, prior);
     _message = message;
     _cakeInstructions = cakeInstructions;
 }
Пример #2
0
 // Business constructor
 public Pull(
     Order order
     ,Kitchen kitchen
     )
 {
     InitializeResults();
     _order = new PredecessorObj<Order>(this, RoleOrder, order);
     _kitchen = new PredecessorObj<Kitchen>(this, RoleKitchen, kitchen);
 }
Пример #3
0
 // Business constructor
 public ContactInformation(
     Order order
     ,IEnumerable<ContactInformation> prior
     ,string name
     ,string phoneNumber
     )
 {
     InitializeResults();
     _order = new PredecessorObj<Order>(this, RoleOrder, order);
     _prior = new PredecessorList<ContactInformation>(this, RolePrior, prior);
     _name = name;
     _phoneNumber = phoneNumber;
 }
Пример #4
0
 // Business constructor
 public DeliveryDetail(
     Order order
     ,City city
     ,IEnumerable<DeliveryDetail> prior
     ,string streetAddress
     ,DateTime expectedDeliveryDate
     ,string deliveryInstructions
     )
 {
     InitializeResults();
     _order = new PredecessorObj<Order>(this, RoleOrder, order);
     _city = new PredecessorObj<City>(this, RoleCity, city);
     _prior = new PredecessorList<DeliveryDetail>(this, RolePrior, prior);
     _streetAddress = streetAddress;
     _expectedDeliveryDate = expectedDeliveryDate;
     _deliveryInstructions = deliveryInstructions;
 }
 public KitchenOrderDetailsViewModel(Order order)
 {
     _order = order;
 }
 public OrderSummaryViewModel(Order order)
 {
     _order = order;
 }
 public FrontOfficeOrderDetailsViewModel(Order order)
 {
     _order = order;
 }
Пример #8
0
 public Pull PullOrder(Order order)
 {
     Pull pull = Community.AddFact(new Pull(order, this));
     Community.AddFact(new Commitment(pull, order.CurrentCakeDetails, Enumerable.Empty<Commitment>()));
     return pull;
 }