public bool HasNoPurchases(int id) { return(purchaseRepository.GetPurchaseEventsByProductId(id).Count.Equals(0)); }
private bool NotPurchased(int id) { return(eventRepository.GetPurchaseEventsByProductId(id).Count.Equals(0)); }
public void GetPurchaseEventsByProductId() { PurchaseEvent ev = GetEvent(); Assert.IsTrue(eventRepository.GetPurchaseEventsByProductId(ev.ProductId).Count >= 1); }
public List <PurchaseEvent> GetAllProductPurchases(int id) { return(purchaseRepository.GetPurchaseEventsByProductId(id)); }