public void Put() { //act string result = aircraftsController.Put(1, new AircraftDTO()).ToString(); //assert Assert.That(result != "null"); }
public async Task Put_WhenNull_ReturnBadRequest() { IActionResult result = await aircraftsController.Put(0, null); Assert.True(result is BadRequestObjectResult); }