public void GetSourcesTest() { var condition = new AggregatedConditionDto(); var items = _service.GetSources(condition).Result.ToList(); Assert.IsNotEmpty(items); Console.WriteLine(items[0]); Assert.Pass(); }
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); }
public async Task <IEnumerable <SourceCatalogDto> > GetSources([FromBody] AggregatedConditionDto condition) { _logger.LogInformation("test"); return(await _dbService.GetSources(condition)); }