예제 #1
0
        public void ComoAdministradorQueroAListaDeTodosOsAtendentes()
        {
            //Arrange
            IRepositorioAtendente repositorioAtendente = new RepositorioAtendenteFake();

            //Act
            IList <Atendente> atendentes = repositorioAtendente.retornarTodos();

            //Assert
            Assert.IsTrue(atendentes.Count > 0);
        }
예제 #2
0
        public void ComoAdministradorQueroExcluirUmAntendente()
        {
            //Arrange
            IRepositorioAtendente repositorioAtendente = new RepositorioAtendenteFake();
            Atendente             atendente            = new Atendente("12334542312", "Fabio Margarito", DateTime.Now);

            //Act
            bool retorno = repositorioAtendente.Excluir(atendente);

            //Assert
            Assert.IsTrue(retorno);
        }
예제 #3
0
        public void ComoAdministradorQueroSelecionarUmAtendentePorCPF()
        {
            //Arrange
            IRepositorioAtendente repositorioAtendente = new RepositorioAtendenteFake();

            //Act
            Atendente atendente = repositorioAtendente.retornarPorCPF("12334542312");

            //Assert

            Assert.IsTrue(atendente.Nome == "Fabio Margarito");
            Assert.IsTrue(atendente.CPF == "12334542312");
        }