Example #1
0
        public void TestRetrieveId()
        {
            InitializaNinject();
            var pacto = _pactoService.ObterPorId(idPacto);

            Assert.IsNotNull(pacto);
            Assert.AreEqual(pacto.IdPacto, idPacto);
        }
Example #2
0
 public PactoViewModel ObterPorId(int id)
 {
     return(Mapper.Map <Pacto, PactoViewModel>(_pactoService.ObterPorId(id)));
 }