Exemplo n.º 1
0
        public void testFindAll()
        {
            repository.deleteAll();
            repository.save(new Powder("a"));
            repository.save(new Powder("b"));
            List <Powder> res = repository.findAll();

            Assert.AreEqual(2, res.Count);
            Assert.AreEqual("a", res[0].PowderName);
            Assert.AreEqual("b", res[1].PowderName);

            repository.deleteAll();
            res = repository.findAll();
            Assert.AreEqual(0, res.Count);
        }
Exemplo n.º 2
0
 public List <Powder> findPowders()
 {
     return(powderRepository.findAll());
 }