Esempio n. 1
0
        public void AddDiscountTest()
        {
            LinkedList <string> toAdd = new LinkedList <string>();

            toAdd.AddLast("Min");
            toAdd.AddLast("AND");
            toAdd.AddLast("0");
            toAdd.AddLast("0");
            toAdd.AddLast("2");
            Assert.True(ManagePolicies.AddDiscountPolicy(toAdd, "Victory", 20, UserId_Orel));
        }
Esempio n. 2
0
        public void DisplayDiscountTest()
        {
            LinkedList <string> toAdd = new LinkedList <string>();

            toAdd.AddLast("Min");
            toAdd.AddLast("AND");
            toAdd.AddLast("0");
            toAdd.AddLast("0");
            toAdd.AddLast("2");
            ManagePolicies.AddDiscountPolicy(toAdd, "Victory", 20, UserId_Orel);

            Assert.NotNull(GetPolicies.GetPoliciesOfStore("Victory"));
        }