public void GetMostRecentPurchaseEvent() { List <PurchaseEvent> evs = eventRepository.GetAllPurchaseEvents(); PurchaseEvent recent = eventRepository.GetMostRecentPurchase(); Assert.AreEqual(evs.Last().Id, recent.Id); }
public PurchaseEvent GetMostRecentPurchase() { return(purchaseRepository.GetMostRecentPurchase()); }