Beispiel #1
0
        public IList <PermissionMaterialExtensionDto> GetPermissionMaterialExtensionFilter(PermissionMaterialExtensionFilter filter)
        {
            var result = new DomainGenerator()
                         .With <PermissionMaterialExtensionDto>(x => x.For(c => c.Rn, (long)0, val => val + 1))
                         .Many <PermissionMaterialExtensionDto>(10);

            return(result.ToList());
        }
Beispiel #2
0
        public IList <PermissionMaterialLiteDto> GetPermissionMaterialFilter(PermissionMaterialFilter filter)
        {
            var result = new DomainGenerator()
                         .With <PermissionMaterialLiteDto>(x => x.For(c => c.Rn, (long)0, val => val + 1))
                         .With <PermissionMaterialLiteDto>(x => x.For(c => (decimal)c.Count, (decimal)0, val => val + 1))
                         .With <PermissionMaterialLiteDto>(x => x.For(c => c.AcceptToDate, new DateTime()))
                         .With <PermissionMaterialLiteDto>(x => x.For(c => c.Note, "SD"))
                         .Many <PermissionMaterialLiteDto>(10);

            return(result.ToList());
        }