Esempio n. 1
0
        private ComicVisiting <Stream> CreateNullVisitor()
        {
            var creator  = new StreamResourceFactoryCreator();
            var provider = new NullServiceProvider();
            var visit    = new ComicVisiting <Stream>(provider, creator);

            return(visit);
        }
Esempio n. 2
0
        public void GivenValueInit_PropertyMustEqualGiven()
        {
            var creator  = new StreamResourceFactoryCreator();
            var provider = new NullServiceProvider();
            var visit    = new ComicVisiting <Stream>(provider, creator);

            Assert.AreEqual(creator, visit.ResourceFactoryCreator);
            Assert.AreEqual(provider, visit.Host);
            visit.Dispose();
        }