Exemplo n.º 1
0
        public void OrderController_CreateOrder_ReturnCreateOrderMessage()
        {
            IOrderManager orderManager = new OrderManager();
            OrderAPI      _controller  = new OrderAPI(orderManager);

            Order _order = new Order
            {
                Id          = 123,
                Description = "test description",
                Price       = 1.50,
                Status      = OrderStatus.Active
            };

            string _response = _controller.CreateOrder(_order);

            Assert.Equal("Order: 123 created", _response);
        }