public void Put_InvalidObjectPassed_ReturnsBadRequest() { // Act var response = hospitalController.Put(0, null); //Assert Assert.IsType <BadRequestErrorMessageResult>(response); //Assert.Equal("request can not be null", response.ToString()); }