Esempio n. 1
0
        public void BlacklistTest()
        {
            Customer c = new Customer();

            UserControl.Blacklist(c);
            Assert.IsTrue(c.IsBlacklisted);
        }
Esempio n. 2
0
        public void CustomerBlacklistTest()
        {
            Customer c1 = UserControl.GetAllCustomer().FirstOrDefault();

            UserControl.Blacklist(c1);
            Assert.AreEqual(c1.IsBlacklisted, true);
            UserControl.NotBlacklist(c1);
            Assert.AreEqual(c1.IsBlacklisted, false);
        }