Exemple #1
0
        public void GetAliquotsTest()
        {
            var condition = new AggregatedConditionDto();
            var items     = _service.GetAliquots(condition).Result.ToList();

            Assert.IsNotEmpty(items);

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

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

            Console.WriteLine($"Found Aliquot {aliquot.AliquotBarcode} with ID {aliquot.AliquotId}");
            return(aliquot);
        }
 public async Task <IEnumerable <AliquotCatalogDto> > GetAliquots([FromBody] AggregatedConditionDto condition)
 {
     return(await _dbService.GetAliquots(condition));
 }