예제 #1
0
 public bool HasNoPurchases(int id)
 {
     return(purchaseRepository.GetPurchaseEventsByProductId(id).Count.Equals(0));
 }
 private bool NotPurchased(int id)
 {
     return(eventRepository.GetPurchaseEventsByProductId(id).Count.Equals(0));
 }
예제 #3
0
        public void GetPurchaseEventsByProductId()
        {
            PurchaseEvent ev = GetEvent();

            Assert.IsTrue(eventRepository.GetPurchaseEventsByProductId(ev.ProductId).Count >= 1);
        }
예제 #4
0
 public List <PurchaseEvent> GetAllProductPurchases(int id)
 {
     return(purchaseRepository.GetPurchaseEventsByProductId(id));
 }