Exemplo n.º 1
0
        public void WhenGettingAllTypes_ThenTypesIncludeName()
        {
            var coffeeRepository = new CoffeeRepository();

            var typesCoffee = coffeeRepository.GetAllType();

            Assert.IsNotNull(typesCoffee);
            Assert.AreEqual("The", typesCoffee[0].TypeDescription);
        }
Exemplo n.º 2
0
        public void WhenGettingAllTypes_ThenAllTypesAreReturned()
        {
            var coffeeRepository = new CoffeeRepository();

            var typesCoffee = coffeeRepository.GetAllType();

            Assert.IsNotNull(typesCoffee);
            Assert.AreEqual(3, typesCoffee.Count());
        }