コード例 #1
0
        public AddMvcControllerToProjectViewModel(
            ISelectedMvcFolder selectedControllerFolder,
            IMvcControllerFileGenerator controllerGenerator,
            IMvcTextTemplateRepository textTemplateRepository)
        {
            this.selectedControllerFolder = selectedControllerFolder;
            this.controllerGenerator      = controllerGenerator;
            this.textTemplateRepository   = textTemplateRepository;

            this.controllerFileName.Folder = selectedControllerFolder.Path;

            SetLanguageForFileGeneration();
            CreateCommands();
            AddControllerTemplates();
        }