public void test_mef_resolver() { var catalog = new AggregateCatalog(); catalog.Catalogs.Add(new AssemblyCatalog(typeof(FileSystemStorage).Assembly)); ServiceLocator.Initialize(catalog); TwitterStream twitterStream = new TwitterStream(ServiceLocator.GetInstance<IStorage>()); twitterStream.StreamData(); }