예제 #1
0
        public void OneTimeSetUp()
        {
            applicationPatcherWpfConfiguration = new ApplicationPatcherWpfConfiguration {
                DependencyFieldNameRules = new Configurations.NameRules {
                    Suffix = "Property", Type = NameRulesType.UpperCamelCase
                },
                DependencyPropertyNameRules = new Configurations.NameRules {
                    Type = NameRulesType.UpperCamelCase
                }
            };

            var nameRulesService = NameRulesServiceHelper.CreateService(applicationPatcherWpfConfiguration);

            dependencyGrouperService = new DependencyGrouperService(applicationPatcherWpfConfiguration, nameRulesService);

            DependencyPropertyType    = FakeCommonTypeBuilder.Create(KnownTypeNames.DependencyProperty).Build();
            fakeCommonAssemblyBuilder = FakeCommonAssemblyBuilder.Create().AddCommonType(DependencyPropertyType, false);
            FakeCommonTypeBuilder.ClearCreatedTypes();
        }
예제 #2
0
 public FrameworkElementDependencyPatcher(DependencyGrouperService dependencyGrouperService, NameRulesService nameRulesService)
 {
     this.dependencyGrouperService = dependencyGrouperService;
     this.nameRulesService         = nameRulesService;
     log = Log.For(this);
 }