public MvcControllerFileGenerator(
			IMvcTextTemplateHostFactory hostFactory,
			IMvcTextTemplateHostAppDomainFactory appDomainFactory,
			IMvcFileGenerationErrorReporter errorReporter)
			: base(hostFactory, appDomainFactory, errorReporter)
		{
			this.Template = new MvcControllerTextTemplate();
		}
Esempio n. 2
0
 public MvcControllerFileGenerator(
     IMvcTextTemplateHostFactory hostFactory,
     IMvcTextTemplateHostAppDomainFactory appDomainFactory,
     IMvcFileGenerationErrorReporter errorReporter)
     : base(hostFactory, appDomainFactory, errorReporter)
 {
     this.Template = new MvcControllerTextTemplate();
 }
		public MvcFileGenerator(
			IMvcTextTemplateHostFactory hostFactory,
			IMvcTextTemplateHostAppDomainFactory appDomainFactory,
			IMvcFileGenerationErrorReporter errorReporter)
		{
			this.hostFactory = hostFactory;
			this.appDomainFactory = appDomainFactory;
			this.errorReporter = errorReporter;
		}
 public MvcFileGenerator(
     IMvcTextTemplateHostFactory hostFactory,
     IMvcTextTemplateHostAppDomainFactory appDomainFactory,
     IMvcFileGenerationErrorReporter errorReporter)
 {
     this.hostFactory      = hostFactory;
     this.appDomainFactory = appDomainFactory;
     this.errorReporter    = errorReporter;
 }
 void CreateGenerator(MvcTextTemplateRepository templateRepository)
 {
     fakeHostFactory        = new FakeMvcTextTemplateHostFactory();
     fakeHost               = fakeHostFactory.FakeMvcTextTemplateHost;
     fakeAppDomainFactory   = new FakeMvcTextTemplateAppDomainFactory();
     fakeErrorReporter      = MockRepository.GenerateStub <IMvcFileGenerationErrorReporter>();
     generator              = new MvcViewFileGenerator(fakeHostFactory, templateRepository, fakeAppDomainFactory, fakeErrorReporter);
     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();
		}
        public MvcViewFileGenerator(
            IMvcTextTemplateHostFactory hostFactory,
            MvcTextTemplateRepository textTemplateRepository,
            IMvcTextTemplateHostAppDomainFactory appDomainFactory,
            IMvcFileGenerationErrorReporter errorReporter)
            : base(hostFactory, appDomainFactory, errorReporter)
        {
            this.textTemplateRepository = textTemplateRepository;

            ModelClassName              = String.Empty;
            ModelClassAssemblyLocation  = String.Empty;
            MasterPageFile              = String.Empty;
            PrimaryContentPlaceHolderId = String.Empty;
            Template = new MvcViewTextTemplate();
        }
		public MvcViewFileGenerator(
			IMvcTextTemplateHostFactory hostFactory,
			MvcTextTemplateRepository textTemplateRepository,
			IMvcTextTemplateHostAppDomainFactory appDomainFactory,
			IMvcFileGenerationErrorReporter errorReporter)
			: base(hostFactory, appDomainFactory, errorReporter)
		{
			this.textTemplateRepository = textTemplateRepository;
			
			ModelClassName = String.Empty;
			ModelClassAssemblyLocation = String.Empty;
			MasterPageFile = String.Empty;
			PrimaryContentPlaceHolderId = String.Empty;
			Template = new MvcViewTextTemplate();
		}