Пример #1
0
        public void AndIntersectsPrimitiveLists(List <List <int> > integrants, HashSet <int> expected)
        {
            var actual = RquestOmopQueryService.Combine(
                QueryCombinators.And,
                integrants);

            Assert.StrictEqual(expected.Count, actual.Count);
            Assert.All(actual, item => expected.Contains(item));
        }
Пример #2
0
 public RquestPollingService(
     ILogger <RquestPollingService> logger,
     RquestConnectorApiClient rquestApi,
     RquestOmopQueryService queries,
     IOptions <RquestPollingServiceOptions> config)
 {
     _logger    = logger;
     _rquestApi = rquestApi;
     _config    = config.Value;
     _queries   = queries;
 }
Пример #3
0
        public RquestQueryHandlers()
        {
            ContextOptions = new DbContextOptionsBuilder <OmopContext>()
                             .UseInMemoryDatabase("db")
                             .Options;

            Seed();

            _testContext = new OmopContext(ContextOptions);
            _sut         = new(_testContext);
        }