private VMTransitLocation(string name, DateTime date, VMAddress address, VMOrder order) { Name = name; Date = date; Address = address; Order = order; }
public static VMTransitLocation Create(string name, DateTime date, VMAddress address, VMOrder order) { return(new VMTransitLocation(name, date, address, order)); }
public static VMOrder Create(int orderId, List <VMOrderLine> orderLines, string customerId, decimal totalCost, decimal shippingCost, VMAddress billingAddress, VMAddress shippingAddress, string promotionCode, DateTime datePlaced) { return(new VMOrder(orderId, orderLines, customerId, totalCost, shippingCost, billingAddress, shippingAddress, promotionCode, datePlaced, null)); }
private VMOrder(int orderId, List <VMOrderLine> orderLines, string customerId, decimal totalCost, decimal shippingCost, VMAddress billingAddress, VMAddress shippingAddress, string promotionCode, DateTime datePlaced, List <VMTransitLocation> transitLocations) { Id = orderId; OrderLines = orderLines; CustomerId = customerId; TotalCost = totalCost; ShippingCost = shippingCost; PromotionCode = promotionCode; DatePlaced = datePlaced; TransitLocations = transitLocations; }