Example #1
0
        public void GetTestsTest()
        {
            var condition = new AggregatedConditionDto();
            var items     = _service.GetTests(condition).Result.ToList();

            Assert.IsNotEmpty(items);

            Console.WriteLine(items[0]);
            Assert.Pass();
        }
        private TestCatalogDto GetTest()
        {
            var condition = new AggregatedConditionDto {
                PageSize = 1
            };
            var items = _catalogService.GetTests(condition).Result.ToList();

            Assert.IsNotEmpty(items);
            var test = items[0];

            Console.WriteLine($"Found Test {test.TestBarcode} with ID {test.TestId}");
            return(test);
        }
Example #3
0
 public async Task <IEnumerable <TestCatalogDto> > GetTests([FromBody] AggregatedConditionDto condition)
 {
     return(await _dbService.GetTests(condition));
 }