public void GetUserByEmail() { IUsersStorageProviderV40 prov = GetProvider(); UserInfo user1 = prov.AddUser("user1", null, "password", "*****@*****.**", true, DateTime.UtcNow); UserInfo user2 = prov.AddUser("user2", null, "password", "*****@*****.**", true, DateTime.UtcNow); Assert.IsNull(prov.GetUserByEmail("*****@*****.**"), "TryGetUserByEmail should return null"); UserInfo output = prov.GetUserByEmail("*****@*****.**"); AssertUserInfosAreEqual(user1, output, true); }
public void GetUserByEmail_InvalidEmail(string e) { IUsersStorageProviderV40 prov = GetProvider(); prov.GetUserByEmail(e); }