public DefaultServerPagerLayoutOptions(
     bool hasPages,
     int pageSize,
     PagerMode mode,
     int pagesBeforeStart,
     int currentPage,
     int pagesAfterStop,
     string url, string skipToken, string takeToken,
     Type localizerType,
     string cssClass,
     Templates.Template <Templates.LayoutTemplateOptions> layoutTemplate,
     string operation
     ) : base(null, null, layoutTemplate, null, null)
 {
     HasPages         = hasPages;
     PagesBeforeStart = pagesBeforeStart;
     CurrentPage      = currentPage;
     PagesAfterStop   = pagesAfterStop;
     Mode             = mode;
     PageSize         = pageSize;
     this.skipToken   = skipToken;
     this.takeToken   = takeToken;
     this.url         = url;
     CssClass         = cssClass;
     LocalizerType    = localizerType;
     this.operation   = operation;
 }
Beispiel #2
0
        public async Task Should_Create()
        {
            //default app
            var deraultApp = await _appManager.FindDefaultAsync();

            //Act
            var t = new Templates.Template(deraultApp.Id, "test", "T_test", ETemplateTypeUtils.GetValue(ETemplateType.FileTemplate), Templates.Template.DefaultExtension, false);

            t.TemplateContent = "123123";
            await _templateManager.CreateAsync(t);

            //Assert
            var root1 = GetTemplateOrNull("test");

            root1.ShouldNotBeNull();
        }
 public PagerOptions(Templates.Template <Templates.LayoutTemplateOptions> layoutTemplate, string operation = null) : base(null)
 {
     LayoutTemplate = layoutTemplate;
     Operation      = operation;
 }