public async Task When_Passing_Null_Parameters_Then_Exceptions_Are_Thrown()
        {
            // ARRANGE
            InitializeFakeObjects();

            // ACTS & ASSERTS
            await Assert.ThrowsAsync <ArgumentNullException>(() => _addResourceOwnerAction.Execute(null));

            await Assert.ThrowsAsync <ArgumentNullException>(() => _addResourceOwnerAction.Execute(new AddUserParameter()));

            await Assert.ThrowsAsync <ArgumentNullException>(() => _addResourceOwnerAction.Execute(new AddUserParameter
            {
                Login = "******"
            }));
        }
Beispiel #2
0
 public async Task AddResourceOwner(AddUserParameter addUserParameter)
 {
     await _addResourceOwnerAction.Execute(addUserParameter);
 }
 public Task Add(AddUserParameter parameter)
 {
     return(_addResourceOwnerAction.Execute(parameter));
 }