public void Create_User() { var user = new User("Login", "Login"); this.database.SaveUser(user); Assert.That(user.Id == 2); }
public void SaveUser(User user) { this.session.Flush(); this.session.SaveOrUpdate(user); }