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