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()));
        }
コード例 #2
0
 public Task <bool> UpdateResourceOwner(ResourceOwner resourceOwner)
 {
     return(_updateResourceOwnerAction.Execute(resourceOwner));
 }