public ActionResult Index() { var viewModel = new IndexViewModel { Usuarios = _usuarioServico.ObterTodos(), Grupos = _grupoServico.ObterTodos(), Estados = _estadoServico.ObterTodos() }; return(View(viewModel)); }
public void GetExamples_ShouldReturn_ListOfExampleEntity() { var result = service.ObterTodos(); Assert.Multiple(() => { repository.Verify(r => r.ObterTodos(), Times.Once); Assert.NotZero(result.Count); Assert.True(result.All(x => !string.IsNullOrEmpty(x.Nome))); }); }
public ActionResult Index() { var usuarios = _usuarioServico.ObterTodos(); return(View(usuarios)); }