public void Init() { _importers = new JsonImporterCollection(); _thing1Importer = new TestImporter(_thing1Type); _thing2Importer = new TestImporter(_thing2Type); }
public void Registration() { Type type = typeof(Thing); JsonImporterCollection importers = new JsonImporterCollection(); Assert.IsNull(importers.Find(type)); ImportAwareImporter importer = new ImportAwareImporter(type); importers.Register(importer); Assert.AreSame(importer, importers.Find(type)); }