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()); }
public Task <List <Server> > Handle(GetServersQuery request, CancellationToken cancellationToken) { return(_serverRepository.GetAll(false)); }
public Task <BatchResult> GetServers(GetServersQuery info, Guid requestId) => Send(new GetServerAddresses(info), requestId);