示例#1
0
        public void GetPurchaseEventsByClientId()
        {
            int lastClientId = clientRepository.GetLastClient().Id;

            List <PurchaseEvent> evs = eventRepository.GetPurchaseEventsByClientId(lastClientId);

            if (evs.Count > 0)
            {
                foreach (var e in evs)
                {
                    Assert.AreEqual(e.ClientId, lastClientId);
                }
            }
        }
 private bool HasNoEvents(int id)
 {
     return(eventRepository.GetPurchaseEventsByClientId(id).Count.Equals(0));
 }
 public List <PurchaseEvent> GetAllClientPurchases(int id)
 {
     return(purchaseRepository.GetPurchaseEventsByClientId(id));
 }
示例#4
0
 public bool HasNoEvents(int id)
 {
     return(purchaseRepository.GetPurchaseEventsByClientId(id).Count.Equals(0) &&
            returnRepository.GetReturnEventsByClientId(id).Count.Equals(0));
 }