public void Put_returns_BadRequest() { var controller = new ExampleController(Helpers.MockExampleBusinessLogic(), Helpers.MockIAppSettings()); var response = controller.Put(Helpers.NullModel); response.Should().BeAssignableTo <BadRequestResult>(); }
public void Put_NoReturn_NoExeption() { // Arrange var controller = new ExampleController(); // Act controller.Put(1, ""); // Assert // As This example dont have a repository, // we are not able to verify if the object was partially updated }