コード例 #1
0
        public void RemoveCategoryDiscount()
        {
            CategoryDiscount expected = new CategoryDiscount("d2", "WanderlandItems", "T", DateTime.Parse("1/1/2018"), DateTime.Parse("31/12/2018"), 50);

            handler.AddCategoryDiscount(expected);
            var find = handler.GetCategoryDiscount("WanderlandItems", "T");

            Assert.AreEqual(expected, find);
            handler.RemoveCategoryDiscount(expected);
            find = handler.GetCategoryDiscount("WanderlandItems", "T");
            Assert.IsNull(find);
        }