public IActionResult Post([FromBody] Order order) { if (ModelState.IsValid) { _unitOfWork.AddOrder(order); return(Ok()); } else { return(BadRequest()); } }
public void TestAddOrder() { bool test = unitOfWork.AddOrder(new Order()); Assert.IsTrue(test); }