Exemplo n.º 1
0
 protected void DeployModuleFile(long lenght)
 {
     TestRandomDefinition <ModuleFileDefinition>(def =>
     {
         def.Content = Rnd.Content(lenght);
     });
 }
 public override DefinitionBase GenerateRandomDefinition(Action <DefinitionBase> action)
 {
     return(WithEmptyDefinition(def =>
     {
         def.FileName = Rnd.String() + ".txt";
         def.Content = Rnd.Content();
     }));
 }
Exemplo n.º 3
0
        public override DefinitionBase GenerateRandomDefinition(Action <DefinitionBase> action)
        {
            return(WithEmptyDefinition(def =>
            {
                def.FileName = string.Format("{0}.html", Rnd.String());
                def.Title = Rnd.String();

                def.Content = Rnd.Content();
            }));
        }
Exemplo n.º 4
0
        public override DefinitionBase GenerateRandomDefinition(Action <DefinitionBase> action)
        {
            return(WithEmptyDefinition(def =>
            {
                def.FileName = string.Format("{0}.js", Rnd.String());
                def.Title = Rnd.String();

                def.Content = Rnd.Content();


                def.TargetScope = Rnd.String();

                def.TargetControlType = BuiltInJSTargetControlType.View;
                def.Standalone = BuiltInJSTemplateType.Override;
            }));
        }