public IActionResult Put(int id, [FromBody] Customer customer) { _businessController.UpdateCustomer(customer); return(new NoContentResult()); }
public void UpdateCustomer_ThrowsNullRefException_WhenCustomerIsNull() { var exception = Assert.Throws <NullReferenceException>(() => _businessController.UpdateCustomer(null)); }