Esempio n. 1
0
        public async Task Retornar_todos_servidores()
        {
            var query = new GetServersQuery();

            var result = await _handler.Handle(query, CancellationToken.None);

            result.Should().BeNull();
            _serverRepositoryMock.Verify(x => x.GetAll(false), Times.Once());
        }
Esempio n. 2
0
 public Task <List <Server> > Handle(GetServersQuery request, CancellationToken cancellationToken)
 {
     return(_serverRepository.GetAll(false));
 }
Esempio n. 3
0
 public Task <BatchResult> GetServers(GetServersQuery info, Guid requestId)
 => Send(new GetServerAddresses(info), requestId);