Beispiel #1
0
        public async Task CreateOrderTests(params object[] path)
        {
            var cmd = new CreateOrderCmdInputGen().Get(path.OfType <CreateOrderCmdInput>().First());

            var expr = from order in RestaurantDomain.CreateOrder(cmd.Order)
                       select order;

            var result = await TestExpr(expr, path);
        }
        public async Task Run_CreateOp_Specs(params object[] path)
        {
            var cmd = new CreateOrderCmdInputGen().Get(path.OfType <CreateOrderCmdInput>().First());

            var expr = from order in RestaurantDomain.CreateOrder(cmd.ClientId, cmd.RestaurantId, cmd.TableNumber,
                                                                  cmd.ItemNames, cmd.ItemQuantities, cmd.ItemComments, cmd.TotalPrice, cmd.Status, cmd.PaymentStatus)
                       select order;

            var result = await TestExpr(expr, path);
        }