public void GetByIdTest() { IProducerRepository target = new ProducerRepository(); var fromDb = target.GetById(item.Id); Assert.IsNotNull(fromDb); Assert.AreNotSame(item, fromDb); Assert.AreEqual(item.Nome, fromDb.Nome); }