public void Test_SignUp() { // Arrange var evaluator = new UsersEvaluator(context); // Act evaluator.SignUp(email, firstName, lastName, password); // Assert var newUser = (from user in context.Users where user.FirstName == firstName && user.LastName == lastName && user.Email == email select new { FirstName = user.FirstName, LastName = user.LastName, Email = user.Email, Password = user.Password, }).First(); Assert.Equal(newUser.Email, email); Assert.Equal(newUser.FirstName, firstName); Assert.Equal(newUser.LastName, lastName); Assert.NotEqual(newUser.Password, password); }
public UsersController(MobilityAIContext context) { evaluator = new UsersEvaluator(context); }