public void GetMaterialsTest() { var condition = new AggregatedConditionDto(); var items = _service.GetMaterials(condition).Result.ToList(); Assert.IsNotEmpty(items); Console.WriteLine(items[0]); Assert.Pass(); }
private MaterialCatalogDto GetMaterial() { var condition = new AggregatedConditionDto { PageSize = 1 }; condition.AddStandardConditionIfNotEmpty("idfsTestStatus", "ttsInProgress", Operators.EqualsOperator); var items = _catalogService.GetMaterials(condition).Result.ToList(); Assert.IsNotEmpty(items); var material = items[0]; Console.WriteLine($"Found Material {material.MaterialBarcode} with ID {material.MaterialId}"); return(material); }
public async Task <IEnumerable <MaterialCatalogDto> > GetMaterials([FromBody] AggregatedConditionDto condition) { return(await _dbService.GetMaterials(condition)); }