Ejemplo n.º 1
0
        public void GetMostRecentPurchaseEvent()
        {
            List <PurchaseEvent> evs = eventRepository.GetAllPurchaseEvents();

            PurchaseEvent recent = eventRepository.GetMostRecentPurchase();

            Assert.AreEqual(evs.Last().Id, recent.Id);
        }
Ejemplo n.º 2
0
 public PurchaseEvent GetMostRecentPurchase()
 {
     return(purchaseRepository.GetMostRecentPurchase());
 }