public void test_add_user()
        {
            var userId = _appService.AddUser("freek", 30);

            var user = _dataAccess.GetUserById(userId);

            Assert.AreEqual("freek", user.Name);
            Assert.AreEqual(30, user.Age);
        }
Exemple #2
0
 public async Task AddUser()
 {
     await _userApplicationService.AddUser();
 }
 private UserId AddUser(string username, int age)
 {
     return(_appService.AddUser(Username.FromString(username), Age.FromInt(age)));
 }