public void Given_success_When_Delete_Then_return_success() { // Given _target = GetTarget(); // When dynamic result = _target.Delete(_responsibilityId); // Then Assert.IsTrue(result.Data.success); }
public void When_Delete_Then_ask_service_to_delete() { // Given _target = GetTarget(); // When _target.Delete(_responsibilityId); // Then _responsibilitiesService .Verify(x => x.Delete(_responsibilityId, TestControllerHelpers.CompanyIdAssigned, TestControllerHelpers.UserIdAssigned)); }