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