public void Post_Return500_When_CrewWithoutStewardesses() { //Arrange var correctItem = new CrewDTO { PilotId = 1 }; //Act var result = _crewController.Put(1, correctItem).Result as StatusCodeResult; //Assert Assert.AreEqual(result.StatusCode, 500); }