Exemple #1
0
        public void CanLoadPurchase()
        {
            var repo = new PurchaseRepositoryADO();

            var purchases = repo.GetAll();

            Assert.AreEqual(5, purchases.Count);

            Assert.AreEqual(1, purchases[0].PurchaseID);
            Assert.AreEqual(34560, purchases[2].PurchasePrice);
        }
Exemple #2
0
        public void CanLoadPurchases()
        {
            var repo = new PurchaseRepositoryADO();

            var purchases = repo.GetAll();

            Assert.AreEqual(3, purchases.Count);
            Assert.AreEqual(5, purchases[2].VehicleID);
            Assert.AreEqual(3, purchases[2].CustomerID);
            Assert.AreEqual("Dealer Finance", purchases[2].PurchaseType);
        }