Пример #1
0
 public void Validate_UserNotLoggedInNotBanned_ReturnsTrue()
 {
     policy = new PolicyLeafBannedUser("user");
     Assert.IsTrue(policy.Validate(1, cart));
 }
Пример #2
0
 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));
 }
Пример #3
0
 public void Validate_UserNotLoggedInBanned_ReturnsFalse()
 {
     policy = new PolicyLeafBannedUser("");
     Assert.IsFalse(policy.Validate(1, cart));
 }