protected TextTemplatingHost CreateTextTemplatingHost(IProject project) { var context = new TextTemplatingHostContext(project); string applicationBase = GetAssemblyBaseLocation(); return(new TextTemplatingHost(context, applicationBase)); }
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; }
protected TextTemplatingHost CreateTextTemplatingHost(IProject project) { var context = new TextTemplatingHostContext(project); string applicationBase = GetAssemblyBaseLocation(); return new TextTemplatingHost(context, applicationBase); }
void CreateHostContext() { var testableHost = new TestableTextTemplatingHost("Test"); hostContext = testableHost.HostContext; fakeAssemblyResolver = testableHost.FakeTextTemplatingAssemblyResolver; }
public TextTemplatingHost(TextTemplatingHostContext context, string applicationBase) { this.context = context; this.applicationBase = applicationBase; }
public MvcTextTemplateHost(TextTemplatingHostContext context, string applicationBase) : base(context, applicationBase) { AddAssemblyReferenceForMvcHost(); AddImports(); }
public TestableTextTemplatingHost(TextTemplatingHostContext context, string applicationBase) : base(context, applicationBase) { HostContext = context; }