public async Task CreateUser_Success()
        {
            //act
            await Story
            .CreateUser(_userModel)
            .ConfigureAwait(false);

            //assert
            _loggingWork.Verify(d => d.CreateUserAsync(It.Is <UserModel>(u => u.Email == _userModel.Email)));
        }
Ejemplo n.º 2
0
 public async Task Post([FromBody] UserModel userModel)
 {
     await UserStory
     .CreateUser(userModel)
     .ConfigureAwait(false);
 }