private OrderDetails( OrderId id, OrderNumber orderNumber, Roubles totalPrice, Status status ) => (Id, OrderNumber, TotalPrice, Status) =
private BookedOrder( OrderId orderId, OrderNumber orderNumber, Roubles totalPrice, BookedItem[] items ) => (Id, OrderNumber, TotalPrice, Items) =
private DrinkSize( DrinkSizeId id, Name name, Volume volume, Roubles price ) => (Id, Name, Volume, Price) =
private DrinkDetails( DrinkId id, Name name, Description description, Uri photoUrl, Roubles priceOfSmallestSize ) => (Id, Name, Description, PhotoUrl, PriceOfSmallestSize) =
private Order( OrderId id, OrderNumber orderNumber, Roubles totalPrice, Status status, OrderDraft draft ) => (Id, OrderNumber, TotalPrice, Status, Draft) =
private AddIn( AddInId id, Name name, Description description, Uri photoUrl, Roubles price ) => (Id, Name, Description, PhotoUrl, Price) =
private LastOrderDetails( OrderId id, DateTime created, OrderNumber orderNumber, Roubles totalPrice, Status status, Comment comment, List <LastOrderDrink> drinks ) => (Id, Created, OrderNumber, TotalPrice, Status, Comment, Drinks) =
public Task <IEnumerable <DrinkDetails> > AvailableDrinkDetails(CancellationToken token = default) { return(Task.FromResult(AvailableDrinks. Select(ad => DrinkDetails.Available( ad.Id, ad.Name, ad.Description, ad.PhotoUrl, Roubles.From(140) )))); }
private Order( OrderId id, DateTime created, OrderNumber orderNumber, Roubles totalPrice, Status status, OrderDraft draft, UserId clientId, Comment comment ) => (Id, Created, OrderNumber, TotalPrice, Status, Draft, ClientId, Comment) =
public static LastOrderDrink Available( DrinkDetails drink, DrinkSizeDetails drinkSize, List <AddInDetails> addIns, Quantity count, Roubles price ) => new LastOrderDrink( drink, drinkSize, addIns, count, price );
private LastOrderDrink( DrinkDetails drink, DrinkSizeDetails drinkSize, List <AddInDetails> addIns, Quantity count, Roubles price ) { Drink = drink; DrinkSize = drinkSize; AddIns = addIns; Count = count; Price = price; }