public void CanLoadModels()
        {
            var repo = new ModelsRepositoryADO();

            var models = repo.GetAll();

            Assert.AreEqual(4, models.Count);

            Assert.AreEqual(4, models[0].ModelID);
            Assert.AreEqual("Forester", models[0].ModelName);
        }
Exemple #2
0
        public void CanLoadModels()
        {
            var repo = new ModelsRepositoryADO();

            var models = repo.GetAll();

            Assert.AreEqual(3, models.Count());

            Assert.AreEqual(1, models[0].ModelId);
            Assert.AreEqual("00000000-0000-0000-000000000000", models[0].UserId);
            Assert.AreEqual("Model1", models[0].ModelName);
            Assert.AreEqual("1/1/2011", models[0].DateAdded.ToShortDateString());
        }