コード例 #1
0
        public void GetMostRecentPurchaseEvent()
        {
            List <PurchaseEvent> evs = eventRepository.GetAllPurchaseEvents();

            PurchaseEvent recent = eventRepository.GetMostRecentPurchase();

            Assert.AreEqual(evs.Last().Id, recent.Id);
        }
コード例 #2
0
 public PurchaseEvent GetMostRecentPurchase()
 {
     return(purchaseRepository.GetMostRecentPurchase());
 }