void CreateHost(string applicationBase)
		{
			host = new TestableTextTemplatingHost(applicationBase);
			textTemplatingAppDomainFactory = host.FakeTextTemplatingAppDomainFactory;
			textTemplatingAppDomain = textTemplatingAppDomainFactory.FakeTextTemplatingAppDomain;
			assemblyResolver = host.FakeTextTemplatingAssemblyResolver;
		}
Beispiel #2
0
        void CreateHostContext()
        {
            var testableHost = new TestableTextTemplatingHost("Test");

            hostContext          = testableHost.HostContext;
            fakeAssemblyResolver = testableHost.FakeTextTemplatingAssemblyResolver;
        }
		public TestableTextTemplatingHost(
			FakeTextTemplatingAppDomainFactory appDomainFactory,
			FakeTextTemplatingAssemblyResolver assemblyResolver,
			string applicationBase)
			: base(appDomainFactory, assemblyResolver, applicationBase)
		{
			FakeTextTemplatingAppDomainFactory = appDomainFactory;
			FakeTextTemplatingAssemblyResolver = assemblyResolver;
		}
		void CreateHost(string applicationBase)
		{
			host = new TestableTextTemplatingHost(applicationBase);
			fakeTextTemplatingAppDomainFactory = host.FakeTextTemplatingAppDomainFactory;
			fakeTextTemplatingAppDomain = fakeTextTemplatingAppDomainFactory.FakeTextTemplatingAppDomain;
			fakeAssemblyResolver = host.FakeTextTemplatingAssemblyResolver;
			fakeTextTemplatingVariables = host.FakeTextTemplatingVariables;
			fakeServiceProvider = host.FakeServiceProvider;
			hostContext = host.HostContext;
		}
        public TestableTextTemplatingHost(
			FakeTextTemplatingAppDomainFactory appDomainFactory,
			FakeTextTemplatingAssemblyResolver assemblyResolver,
			FakeTextTemplatingVariables textTemplatingVariables,
			FakeServiceProvider fakeServiceProvider,
			string applicationBase)
            : this(new TextTemplatingHostContext(
					appDomainFactory,
					assemblyResolver,
					textTemplatingVariables,
					fakeServiceProvider),
				applicationBase)
        {
            FakeTextTemplatingAppDomainFactory = appDomainFactory;
            FakeTextTemplatingAssemblyResolver = assemblyResolver;
            FakeTextTemplatingVariables = textTemplatingVariables;
            FakeServiceProvider = fakeServiceProvider;
        }
 public TestableTextTemplatingHost(
     FakeTextTemplatingAppDomainFactory appDomainFactory,
     FakeTextTemplatingAssemblyResolver assemblyResolver,
     FakeTextTemplatingVariables textTemplatingVariables,
     FakeServiceProvider fakeServiceProvider,
     string applicationBase)
     : this(
         new TextTemplatingHostContext(
             appDomainFactory,
             assemblyResolver,
             textTemplatingVariables,
             fakeServiceProvider),
         applicationBase)
 {
     FakeTextTemplatingAppDomainFactory = appDomainFactory;
     FakeTextTemplatingAssemblyResolver = assemblyResolver;
     FakeTextTemplatingVariables        = textTemplatingVariables;
     FakeServiceProvider = fakeServiceProvider;
 }
 void CreateHostContext()
 {
     var testableHost = new TestableTextTemplatingHost("Test");
     hostContext = testableHost.HostContext;
     fakeAssemblyResolver = testableHost.FakeTextTemplatingAssemblyResolver;
 }