Exemple #1
0
        public void Create_content_success()
        {
            var root = new TestSite {
                Id = 1
            };
            var factory = new UmbracoQueryFactory();
            var task    = Substitute.For <IMapTask <TestItem> >();

            var query = factory.Create(root, task);

            Assert.That(query is ContentQuery <TestItem>);
        }
Exemple #2
0
        public void Create_media_success()
        {
            var root = new TestSite {
                Id = 1
            };
            var factory = new UmbracoQueryFactory();
            var task    = Substitute.For <IMapTask <TestMedia> >();

            var query = factory.Create(root, task);

            Assert.That(query is MediaQuery <TestMedia>);
        }