void CreateGenerator(MvcTextTemplateRepository templateRepository) { fakeHostFactory = new FakeMvcTextTemplateHostFactory(); fakeHost = fakeHostFactory.FakeMvcTextTemplateHost; fakeAppDomainFactory = new FakeMvcTextTemplateAppDomainFactory(); generator = new MvcViewFileGenerator(fakeHostFactory, templateRepository, fakeAppDomainFactory); projectUsedByGenerator = new FakeMvcProject(); generator.Project = projectUsedByGenerator; ProjectPassedToGeneratorIsCSharpProject(); }
void CreateGenerator() { fakeHostFactory = new FakeMvcTextTemplateHostFactory(); fakeHost = fakeHostFactory.FakeMvcTextTemplateHost; fakeAppDomainFactory = new FakeMvcTextTemplateAppDomainFactory(); fakeErrorReporter = MockRepository.GenerateStub<IMvcFileGenerationErrorReporter>(); generator = new MvcControllerFileGenerator(fakeHostFactory, fakeAppDomainFactory, fakeErrorReporter); projectUsedByGenerator = new FakeMvcProject(); generator.Project = projectUsedByGenerator; ProjectPassedToGeneratorIsCSharpProject(); }