コード例 #1
0
        protected TextTemplatingHost CreateTextTemplatingHost(IProject project)
        {
            var    context         = new TextTemplatingHostContext(project);
            string applicationBase = GetAssemblyBaseLocation();

            return(new TextTemplatingHost(context, applicationBase));
        }
コード例 #2
0
		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;
		}
コード例 #3
0
		protected TextTemplatingHost CreateTextTemplatingHost(IProject project)
		{
			var context = new TextTemplatingHostContext(project);
			string applicationBase = GetAssemblyBaseLocation();
			return new TextTemplatingHost(context, applicationBase);
		}
コード例 #4
0
 void CreateHostContext()
 {
     var testableHost = new TestableTextTemplatingHost("Test");
     hostContext = testableHost.HostContext;
     fakeAssemblyResolver = testableHost.FakeTextTemplatingAssemblyResolver;
 }
コード例 #5
0
 public TextTemplatingHost(TextTemplatingHostContext context, string applicationBase)
 {
     this.context         = context;
     this.applicationBase = applicationBase;
 }
コード例 #6
0
		public MvcTextTemplateHost(TextTemplatingHostContext context, string applicationBase)
			: base(context, applicationBase)
		{
			AddAssemblyReferenceForMvcHost();
			AddImports();
		}
コード例 #7
0
 public TextTemplatingHost(TextTemplatingHostContext context, string applicationBase)
 {
     this.context = context;
     this.applicationBase = applicationBase;
 }
コード例 #8
0
 public TestableTextTemplatingHost(TextTemplatingHostContext context, string applicationBase)
     : base(context, applicationBase)
 {
     HostContext = context;
 }