public void CheckUserNotToLoginWithWrongCredential() { UserProfile upObj = new UserProfile(); upObj.email = "*****@*****.**"; upObj.password = "******"; // arrange FakeAPI objFakeAPI = new FakeAPI(); // act bool isLogin = objFakeAPI.IsValidUser(upObj.email, upObj.password); // assert Assert.IsFalse(isLogin); }
public void IsLoginWithCorrectCredential() { UserProfile upObj = new UserProfile(); upObj.email = "*****@*****.**"; upObj.password = "******"; // arrange FakeAPI objFakeAPI = new FakeAPI(); // act bool isLogin = objFakeAPI.IsValidUser(upObj.email, upObj.password); // assert Assert.IsTrue(isLogin); }