public async Task DeleteUser_Success()
        {
            //act
            await Story
            .DeleteUser(_userModel.Id)
            .ConfigureAwait(false);

            //assert
            _loggingWork.Verify(d => d.DeleteUserAsync(It.Is <int>(u => u == _userModel.Id)));
        }
示例#2
0
 public async Task Delete(int id)
 {
     await UserStory
     .DeleteUser(id)
     .ConfigureAwait(false);
 }