public MainWindow() { InitializeComponent(); _regexValidator = new RegexValidator(); _matcher = new RegexMatcher(); Model = new RegexModel(); }
public RegisterService( IUserRepository repository, IRegexValidator regexValidator, IHashGenerator hashGenerator, IMessageQueuePublisher messageQueuePublisher ) { _repository = repository; _regexValidator = regexValidator; _hashGenerator = hashGenerator; _messageQueuePublisher = messageQueuePublisher; }
/// <summary> /// Initializes a new instance of the <see cref="PrevalueEditor"/> class. /// </summary> /// <param name="dataType">The DataType.</param> public PrevalueEditor(umbraco.cms.businesslogic.datatype.BaseDataType dataType) : base(dataType, umbraco.cms.businesslogic.datatype.DBTypes.Ntext) { // Set up dependencies this.regexValidator = new RegexValidator(); this.prevalueEditorSettingsHandler = new PrevalueEditorSettingsHandler(); this.prevalueEditorControlFactory = new PrevalueEditorControlFactory(); // Ensure settings file exists Helper.IO.EnsureFileExists( IOHelper.MapPath("~/config/DataTypeGrid.config"), DtgConfiguration.DataTypeGrid); // Ensure webservice file exists var dtgFolder = Helper.IO.EnsureFolderExists(Path.Combine(DataTypes.Settings.BaseDir.FullName, "DataTypeGrid")); Helper.IO.EnsureFileExists(Path.Combine(dtgFolder.FullName, "PreValueWebService.asmx"), DtgWebServices.PreValueWebService); }