Пример #1
0
        public IList <DictionaryPassDto> GetDictionaryPass(DictionaryPassFilter filter)
        {
            var result = new DomainGenerator()
                         .With <DictionaryPassDto>(x => x.For(c => c.Rn, (long)0, val => val + 1))
                         .With <DictionaryPassDto>(x => x.For(c => c.MemoPass, new StringGenerator(5, 7, 'N', 'U')))
                         .With <DictionaryPassDto>(x => x.For(c => c.Pass, new StringGenerator(5, 7, 'N', 'U')))
                         .Many <DictionaryPassDto>(10);

            return(new List <DictionaryPassDto>(result));
        }
 public IList <DictionaryPassDto> GetDictionaryPass(DictionaryPassFilter filter)
 {
     return(this.GetEntities <DictionaryPassFilter, DictionaryPass, DictionaryPassDto>(filter));
 }