Esempio n. 1
0
        private object[] GetArguments(Type wizardType)
        {
            if (wizardType.GetConstructor(new[] { typeof(IServiceProvider) }) != null)
            {
                var proxyProvider = new ProxyServiceProvider(this.ServiceProvider);
                proxyProvider.AddService(typeof(IWindowsFormsEditorService), new WindowsFormsEditorService());
                return(new object[] { proxyProvider });
            }

            return(new object[0]);
        }
Esempio n. 2
0
 public void Initialize()
 {
     this.parent = new Mock <IServiceProvider>().Object;
     this.target = new ProxyServiceProvider(this.parent);
 }