public void Make_feature_all()
        {
            var m = new Maker(new MiruSolution(_solutionDir));

            m.FeatureAll("Teams", "Team");

            (m.Solution.FeaturesDir / "Teams" / "TeamNew.cs").ShouldExist();
            (m.Solution.FeaturesDir / "Teams" / "New.cshtml").ShouldExist();
            (m.Solution.FeaturesDir / "Teams" / "_New.turbo.cshtml").ShouldExist();
            (m.Solution.AppTestsDir / "Features" / "Teams" / "TeamNewTest.cs").ShouldExist();
            (m.Solution.AppPageTestsDir / "Pages" / "Teams" / "TeamNewPageTest.cs").ShouldExist();

            (m.Solution.FeaturesDir / "Teams" / "TeamEdit.cs").ShouldExist();
            (m.Solution.FeaturesDir / "Teams" / "Edit.cshtml").ShouldExist();
            (m.Solution.FeaturesDir / "Teams" / "_Edit.turbo.cshtml").ShouldExist();
            (m.Solution.AppTestsDir / "Features" / "Teams" / "TeamEditTest.cs").ShouldExist();
            (m.Solution.AppPageTestsDir / "Pages" / "Teams" / "TeamEditPageTest.cs").ShouldExist();

            (m.Solution.FeaturesDir / "Teams" / "TeamShow.cs").ShouldExist();
            (m.Solution.FeaturesDir / "Teams" / "Show.cshtml").ShouldExist();
            (m.Solution.AppTestsDir / "Features" / "Teams" / "TeamShowTest.cs").ShouldExist();
            (m.Solution.AppPageTestsDir / "Pages" / "Teams" / "TeamShowPageTest.cs").ShouldExist();

            (m.Solution.FeaturesDir / "Teams" / "TeamList.cs").ShouldExist();
            (m.Solution.FeaturesDir / "Teams" / "List.cshtml").ShouldExist();
            (m.Solution.AppTestsDir / "Features" / "Teams" / "TeamListTest.cs").ShouldExist();
            (m.Solution.AppPageTestsDir / "Pages" / "Teams" / "TeamListPageTest.cs").ShouldExist();
        }
Beispiel #2
0
        public override bool Execute(Input input)
        {
            var make = new Maker(_solution);

            Console2.BreakLine();

            make.FeatureAll(input.In, input.Name);

            Console2.BreakLine();
            Console2.WhiteLine($"Consider creating an Entity and a Migration for {input.Name}");
            Console2.BreakLine();

            return(true);
        }