public void GetPages_OnlyFrontEndFrameworkFilter()
        {
            SetUpFixtureForTesting(ProgrammingLanguages.CSharp);

            _context.ProjectType       = "pt1";
            _context.FrontEndFramework = "fx1";

            var pages = _repo.GetTemplatesInfo(TemplateType.Page, _context);

            Assert.Collection(
                pages,
                p1 =>
            {
                Assert.Equal("PageTemplate", p1.Name);
            });
        }
Beispiel #2
0
        public void GetPages_OnlyFrontEndFrameworkFilter()
        {
            SetUpFixtureForTesting(ProgrammingLanguages.CSharp);

            var pages = _repo.GetTemplatesInfo(TemplateType.Page, TestPlatform, "pt1", "fx1");

            Assert.Collection(
                pages,
                p1 =>
            {
                Assert.Equal("PageTemplate", p1.Name);
            });
        }