public void Validate_UserNotLoggedInNotBanned_ReturnsTrue() { policy = new PolicyLeafBannedUser("user"); Assert.IsTrue(policy.Validate(1, cart)); }
public void Validate_UserLoggedInNotBanned_ReturnsTrue() { Workshop192.UserManagment.AllRegisteredUsers.GetInstance().GetUser(1).LogIn(Workshop192.UserManagment.AllRegisteredUsers.GetInstance().GetUserInfo("user")); policy = new PolicyLeafBannedUser("user2"); Assert.IsTrue(policy.Validate(1, cart)); }
public void Validate_UserNotLoggedInBanned_ReturnsFalse() { policy = new PolicyLeafBannedUser(""); Assert.IsFalse(policy.Validate(1, cart)); }