public void TestRetrieveId() { InitializaNinject(); var pacto = _pactoService.ObterPorId(idPacto); Assert.IsNotNull(pacto); Assert.AreEqual(pacto.IdPacto, idPacto); }
public PactoViewModel ObterPorId(int id) { return(Mapper.Map <Pacto, PactoViewModel>(_pactoService.ObterPorId(id))); }