示例#1
0
        public async Task When_Passing_Null_Parameters_Then_Exceptions_Are_Thrown()
        {
            // ARRANGE
            InitializeFakeObjects();

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

            await Assert.ThrowsAsync <ArgumentNullException>(() => _updateUserOperation.Execute(new UpdateUserParameter()));
        }
示例#2
0
 public async Task <bool> UpdateUser(UpdateUserParameter updateUserParameter)
 {
     return(await _updateUserOperation.Execute(updateUserParameter));
 }
示例#3
0
 public IActionResult Update([FromBody] UserDto userDto) => _updateUserOperation.Execute(userDto);