Ejemplo n.º 1
0
 private static void AddSharedCommonWorkflowNameQuestion(List <IWizardPage> pages)
 {
     pages.Add(GenericPage.Create(new TextQuestionInfo("What do you want the name of the shared common workflow assembly to be?")
     {
         DefaultResponse = GenericPage.GetSaveResultsFormat(Page.RootNamespace) + ".WorkflowCore",
         Description     = "This will be the name of a shared C# project that contains references to the workflow code.  It would only be required by assemblies containing a workflow."
     }));
 }
Ejemplo n.º 2
0
 private static void AddSharedCommonNameQuestion(List <IWizardPage> pages)
 {
     pages.Add(GenericPage.Create(new TextQuestionInfo("What do you want the name of the shared common assembly to be?")
     {
         DefaultResponse = GenericPage.GetSaveResultsFormat(Page.RootNamespace),
         Description     = "This will be the name of a shared C# project that will be used to store common code including plugin logic and early bound entities if applicable"
     }));
 }
Ejemplo n.º 3
0
        private static void AddWorkflowTestProjectNameQuestion(List <IWizardPage> pages)
        {
            var page = GenericPage.Create(new TextQuestionInfo("What do you want the name of the workflow test project to be?")
            {
                DefaultResponse = GenericPage.GetSaveResultsFormat(Page.CreateWorkflow, 1) + ".Tests",
                Description     = "This will be the name of the Visual Studio Unit Test Project for the workflow assembly."
            });

            page.AddSavedValuedRequiredCondition(Page.CreateWorkflow, "Y");
            page.AddSavedValuedRequiredCondition(Page.UseXrmUnitTest, "Y");
            pages.Add(page);
        }
Ejemplo n.º 4
0
        private static void AddCreateXrmUnitTestProjectQuestion(List <IWizardPage> pages, int forPage)
        {
            var page = GenericPage.Create(new ConditionalYesNoQuestionInfo("Do you want to create a XrmUnitTest test project for the new assembly?")
            {
                Yes = new TextQuestionInfo("What do you want the name of the test project to be?")
                {
                    DefaultResponse = GenericPage.GetSaveResultsFormat(forPage, 1) + ".Tests",
                    Description     = "This will be the name of the Visual Studio Unit Test Project for the assembly."
                }
            });

            page.AddSavedValuedRequiredCondition(forPage, "Y");
            pages.Add(page);
        }
Ejemplo n.º 5
0
 private static void AddCreateWorkflowProjectQuestion(List <IWizardPage> pages)
 {
     pages.Add(GenericPage.Create(new ConditionalYesNoQuestionInfo("Do you want to create a Workflow Project?")
     {
         Yes = new TextQuestionInfo("What should the workflow project be called??")
         {
             DefaultResponse = GenericPage.GetSaveResultsFormat(Page.RootNamespace) + ".Workflow",
             Description     = "The name and default namespace for the workflow project."
         },
         Yes2 = new ComboQuestionInfo("Include example custom workflow activity?")
         {
             DefaultResponse = 0
         },
         Description = "This will add a new workflow project to the solution and wire up the appropriate references."
     }));
 }
Ejemplo n.º 6
0
 private static void AddRootNamespaceQuestion(List <IWizardPage> pages)
 {
     pages.Add(GenericPage.Create(new TextQuestionInfo("What is the root NameSpace?")
     {
         DefaultResponse     = GenericPage.GetSaveResultsFormat(Page.SolutionPath, 1),
         EditDefaultResponse = (value) =>
         {
             value = System.IO.Path.GetFileNameWithoutExtension(value) ?? "MyCompanyAbrv.Xrm";
             if (!value.ToUpper().Contains("XRM"))
             {
                 value += ".Xrm";
             }
             return(value);
         },
         Description = "This is the root namespace that will the Plugin and (if desired) Early Bound Entities will be appended to."
     }));
 }
Ejemplo n.º 7
0
 private static void AddCreatePluginProjectQuestion(List <IWizardPage> pages)
 {
     pages.Add(GenericPage.Create(new ConditionalYesNoQuestionInfo("Do you want to create a Plugin Project?")
     {
         Yes = new TextQuestionInfo("What should the plugin project be called?")
         {
             DefaultResponse = GenericPage.GetSaveResultsFormat(Page.RootNamespace) + ".Plugin",
             Description     = "The name and default namespace for the plugin project."
         },
         Yes2 = new ComboQuestionInfo("Include example plugin classes?")
         {
             DefaultResponse = 0,
             Description     = "If example plugin classes are included, it may contain compiler errors if the Early Bound Entities used in the files are not generated.",
         },
         Description = "This will add a new plugin project to the solution and wire up the appropriate references."
     }));
 }
Ejemplo n.º 8
0
 private static void AddUseXrmUnitTestQuestion(List <IWizardPage> pages)
 {
     pages.Add(GenericPage.Create(new ConditionalYesNoQuestionInfo("Do you want to use XrmUnitTest for unit testing?")
     {
         Yes = new TextQuestionInfo("What do you want the Test Settings project to be called?")
         {
             DefaultResponse = GenericPage.GetSaveResultsFormat(Page.RootNamespace) + ".Test",
             Description     = "The Test Settings project will contain the single test settings config file and assumption xml files."
         },
         Yes2 = new TextQuestionInfo("What do you want the shared core test project to be called?")
         {
             DefaultResponse = GenericPage.GetSaveResultsFormat(Page.RootNamespace) + ".TestCore",
             Description     = "The shared Test Project will contain all other shared test code (Assumption Definitions, Builders, Test Base Class, etc)"
         },
         Description = "This will add the appropriate NuGet References and create the appropriate isolation projects."
     }));
 }