private ComicVisiting <Stream> CreateNullVisitor() { var creator = new StreamResourceFactoryCreator(); var provider = new NullServiceProvider(); var visit = new ComicVisiting <Stream>(provider, creator); return(visit); }
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(); }