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())); }
public async Task <bool> UpdateUser(UpdateUserParameter updateUserParameter) { return(await _updateUserOperation.Execute(updateUserParameter)); }
public IActionResult Update([FromBody] UserDto userDto) => _updateUserOperation.Execute(userDto);