public static async Task Test1Async() { string path = "c:\\data\\test"; DirectoryInfo directoryInfo = new DirectoryInfo(path); if (directoryInfo.Exists) { directoryInfo.Delete(true); } directoryInfo.Create(); FileStorageFactory factory = new FileStorageFactory(new Uri("http://tempuri.org"), path); await RegistrationMaker.Process(new RegistrationKey("mypackage"), CreateTestSingleEntryBatch("mypackage", "1.0.0"), factory, new Uri("http://content/"), 2, 3); await RegistrationMaker.Process(new RegistrationKey("mypackage"), CreateTestSingleEntryBatch("mypackage", "2.0.0"), factory, new Uri("http://content/"), 2, 3); await RegistrationMaker.Process(new RegistrationKey("mypackage"), CreateTestSingleEntryBatch("mypackage", "3.0.0"), factory, new Uri("http://content/"), 2, 3); await RegistrationMaker.Process(new RegistrationKey("mypackage"), CreateTestSingleEntryBatch("mypackage", "4.0.0"), factory, new Uri("http://content/"), 2, 3); await RegistrationMaker.Process(new RegistrationKey("mypackage"), CreateTestSingleEntryBatch("mypackage", "5.0.0"), factory, new Uri("http://content/"), 2, 3); await RegistrationMaker.Process(new RegistrationKey("mypackage"), CreateTestSingleEntryBatch("mypackage", "6.0.0"), factory, new Uri("http://content/"), 2, 3); }
public static async Task Test0Async() { string path = "c:\\data\\test"; DirectoryInfo directoryInfo = new DirectoryInfo(path); if (directoryInfo.Exists) { directoryInfo.Delete(true); } directoryInfo.Create(); IDictionary <string, IGraph> catalog = new Dictionary <string, IGraph>(); //catalog.Add(CreateTestCatalogEntry("mypackage", "1.0.0")); //catalog.Add(CreateTestCatalogEntry("mypackage", "2.0.0")); catalog.Add(CreateTestCatalogEntry("mypackage", "3.0.0")); catalog.Add(CreateTestCatalogEntry("mypackage", "4.0.0")); catalog.Add(CreateTestCatalogEntry("mypackage", "5.0.0")); FileStorageFactory factory = new FileStorageFactory(new Uri("http://tempuri.org"), path); await RegistrationMaker.Process(new RegistrationKey("mypackage"), catalog, factory, new Uri("http://content/"), 2, 3); }