public IList <DictionaryChemicalIndicatorDto> GetDictionaryChemicalIndicator(DictionaryChemicalIndicatorFilter filter) { var result = new DomainGenerator() .With <DictionaryChemicalIndicatorDto>(x => x.For(c => c.Rn, (long)0, val => val + 1)) .With <DictionaryChemicalIndicatorDto>(x => x.For(c => c.Name, new StringGenerator(5, 7, 'N', 'U'))) .With <DictionaryChemicalIndicatorDto>(x => x.For(c => c.Code, new StringGenerator(5, 7, 'N', 'U'))) .Many <DictionaryChemicalIndicatorDto>(10); return(new List <DictionaryChemicalIndicatorDto>(result)); }
public IList <DictionaryChemicalIndicatorDto> GetDictionaryChemicalIndicator(DictionaryChemicalIndicatorFilter filter) { return(this.GetEntities <DictionaryChemicalIndicatorFilter, DictionaryChemicalIndicator, DictionaryChemicalIndicatorDto>(filter)); }