Exemplo n.º 1
0
        private void BuildFormFieldSelectorOptions(PropertyInfo property, IBuildOptions buildOptions)
        {
            var options   = new List <Option>();
            var attribute = (FormFieldOptionAttribute)Attribute.GetCustomAttribute(property, typeof(FormFieldOptionAttribute));

            options.AddRange(buildOptions.BuildOptions(attribute));
            Options = options;
        }
Exemplo n.º 2
0
 public ContentManager(ILog log, IBuildOptions buildOptions, IContentSaver contentSaver, IBuildSource buildSource)
 {
     Log               = log;
     _buildOptions     = buildOptions;
     _processorContext = new ContentProcessorContext();
     _processorContext.ContentManager = this;
     _contentSaver           = contentSaver;
     _materialFactoryManager = new MaterialFactoryManager();
     _buildSource            = buildSource;
 }
 public TestExecutionManager()
 {
     this.buildService        = SD.BuildService;
     this.taskService         = new UnitTestTaskService();
     this.saveAllFilesCommand = new UnitTestSaveAllFilesCommand();
     this.testService         = SD.GetRequiredService <ITestService>();
     this.workbench           = SD.Workbench;
     this.statusBarService    = SD.StatusBar;
     this.mainThread          = SD.MainThread;
     this.buildOptions        = new UnitTestBuildOptions();
 }
		public TestExecutionManager()
		{
			this.buildService = SD.BuildService;
			this.taskService = new UnitTestTaskService();
			this.saveAllFilesCommand = new UnitTestSaveAllFilesCommand();
			this.testService = SD.GetRequiredService<ITestService>();
			this.workbench = SD.Workbench;
			this.statusBarService = SD.StatusBar;
			this.mainThread = SD.MainThread;
			this.buildOptions = new UnitTestBuildOptions();
		}
Exemplo n.º 5
0
 public virtual void BuildFormFieldOptions(PropertyInfo property, IBuildOptions buildOptions = null)
 {
     if (property.PropertyType.IsEnum)
     {
         BuildFormFieldEnumOptions(property);
     }
     else if (buildOptions != null)
     {
         BuildFormFieldSelectorOptions(property, buildOptions);
     }
     else
     {
         throw new ArgumentException($"You haven't specified selector for the {property.Name}");
     }
 }
 public DropDownListBuilder(IBuildOptions buildOptions)
 {
     _buildOptions = buildOptions;
 }
Exemplo n.º 7
0
 public RadioBuilder(IBuildOptions buildOptions)
 {
     _buildOptions = buildOptions;
 }