Пример #1
0
        public void GetByNameTest()
        {
            IProducerRepository target = new ProducerRepository();

            var fromDb = target.GetByName(item.Nome);

            Assert.IsNotNull(fromDb);
            Assert.AreNotSame(item, fromDb);
            Assert.AreEqual(item.Nome, fromDb.Nome);
        }