示例#1
0
        public void Service_SalaReservada_Deveria_BuscarTodos_Locacaos_Corretamente()
        {
            List <Alocacao> funcionario = ObjectMother.GetSalasReservadas();

            _repository
            .Setup(f => f.GetAll())
            .Returns(funcionario);
            List <Alocacao> recebido = _service.PegarTodos();

            _repository.Verify(f => f.GetAll());
            recebido.Should().BeEquivalentTo(funcionario);
        }
示例#2
0
        public void Integration_Pegar_Todos_Os_SalaReservadas_Corretamente()
        {
            List <Alocacao> funcionarios = _service.PegarTodos();

            funcionarios.Count().Should().BeGreaterThan(0);
        }