public async Task When_Passing_Null_Parameters_Then_Exceptions_Are_Thrown() { // ARRANGE InitializeFakeObjects(); // ACT & ASSERT await Assert.ThrowsAsync <ArgumentNullException>(() => _updateResourceOwnerAction.Execute(null)); await Assert.ThrowsAsync <ArgumentNullException>(() => _updateResourceOwnerAction.Execute(new ResourceOwner())); }
public Task <bool> UpdateResourceOwner(ResourceOwner resourceOwner) { return(_updateResourceOwnerAction.Execute(resourceOwner)); }