public void UnitTest2(OrderForm orderForm)
        {
            var ActualResult = _orderBiz.CreateOrder(orderForm);

            Assert.NotNull(ActualResult);
            Assert.True(ActualResult.StatusCode == 400);
            Assert.NotNull(ActualResult.ErrorList);
            Assert.True(ActualResult.ErrorList.Count > 0);
        }
Exemplo n.º 2
0
        public ActionResult <OrderFormResponse> Post([FromBody] OrderForm orderForm)
        {
            OrderFormResponse orderResponse = _orderBiz.CreateOrder(orderForm);

            return(Ok(orderResponse));
        }