public void FindUsersByEmail_ValidUser_ReturnsOneRecord() { UserParameters u = _testUsers[0]; int total = 0; MembershipUserCollection users = _mp.FindUsersByEmail(u.email, 0, 5, out total); Assert.AreEqual(total, 1); }
public void FindUserByEmail_GivenGoodEmail_ReturnsOneRecord() { //Arrange var email = "GoodEmail"; var recs = -1; var expectedRecs = 1; //Act var actual = _mProv.FindUsersByEmail(email, 0, 99, out recs); //Assert Assert.AreEqual(expectedRecs, recs); Assert.AreEqual(expectedRecs, actual.Count); }