public void ItemCanBeAdded() { var controller = new CRUDController<Promotion>(b); controller.Add(new Promotion { Expiration = DateTime.Now, PromotionCode = "", PromoType = Promotion.PromotionType.FlatRate, PromotionName = "5 off", PromoValue = 5 }); controller.ListAll().Count().ShouldEqual(1); }
public void ItemCanBeAdded() { var controller = new CRUDController <Promotion>(b); controller.Add(new Promotion { Expiration = DateTime.Now, PromotionCode = "", PromoType = Promotion.PromotionType.FlatRate, PromotionName = "5 off", PromoValue = 5 }); controller.ListAll().Count().ShouldEqual(1); }
public void StartsEmpty() { var controller = new CRUDController<Promotion>(b); controller.ListAll().ShouldBeEmpty(); }
public void StartsEmpty() { var controller = new CRUDController <Promotion>(b); controller.ListAll().ShouldBeEmpty(); }