public void UnitTest3(UpdateOrderAddressForm updateOrderAddress) { var ActualResult = _orderBiz.UpdateOrderAddress(updateOrderAddress); Assert.NotNull(ActualResult); Assert.True(ActualResult.StatusCode == 400); Assert.NotNull(ActualResult.ErrorList); Assert.True(ActualResult.ErrorList.Count > 0); }
public ActionResult <UpdateOrderAddressFormResponse> UpdateOrderAddress([FromBody] UpdateOrderAddressForm updateOrderAddressForm) { UpdateOrderAddressFormResponse updateOrderAddressFormResponse = _orderBiz.UpdateOrderAddress(updateOrderAddressForm); return(Ok(updateOrderAddressFormResponse)); }