Exemplo n.º 1
0
        public void GetSourcesTest()
        {
            var condition = new AggregatedConditionDto();
            var items     = _service.GetSources(condition).Result.ToList();

            Assert.IsNotEmpty(items);

            Console.WriteLine(items[0]);
            Assert.Pass();
        }
Exemplo n.º 2
0
        private SourceCatalogDto GetSourceWithMaterial()
        {
            var condition = new AggregatedConditionDto {
                PageSize = 1
            };

            condition.AddStandardConditionIfNotEmpty("strMaterialBarcode", "m", Operators.LikeOperator);
            var items = _catalogService.GetSources(condition).Result.ToList();

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

            Console.WriteLine($"Found source {source.SourceBarcode} with ID {source.SourceId}");
            return(source);
        }
Exemplo n.º 3
0
 public async Task <IEnumerable <SourceCatalogDto> > GetSources([FromBody] AggregatedConditionDto condition)
 {
     _logger.LogInformation("test");
     return(await _dbService.GetSources(condition));
 }