public void Repository_Repository_IsNotNull() { IWishListRepository rep = new TestWishListRepository(); Assert.IsNotNull(rep.GetUsers(), "Users in repository was null"); Assert.IsNotNull(rep.GetWishes(), "Wishes in repository was null"); }
public void Repository_WishFilter_Returns_5_Wishes_For_User_1() { IWishListRepository rep = new TestWishListRepository(); IList <Wish> wishes = rep.GetWishes().ForUser(1).ToList(); Assert.AreEqual(5, wishes.Count); }
public void Repository_Has_ForUser_Filter_For_Wishes() { IWishListRepository rep = new TestWishListRepository(); IList <Wish> wishes = rep.GetWishes() .ForUser(1) .ToList(); Assert.IsNotNull(wishes); }