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; }
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(); }
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; }
public RadioBuilder(IBuildOptions buildOptions) { _buildOptions = buildOptions; }