public void SetUpBeforeClass() { if (_isCommunitySetupDone) { HttpRequest request = new HttpRequest(null, "http://localhost", null); Hd4 objHd4 = new Hd4(request, "/hdCloudConfig.json"); string directoryPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); string filePath = directoryPath + "\\" + "communityTest.zip"; _store = HdStore.Instance; _store.SetPath(directoryPath, true); objHd4.CommunityFetchArchive(); _isCommunitySetupDone = false; } }
public void SetUpBeforeClass() { if (_isCommunitySetupDone) { HttpRequest request = new HttpRequest(null, "http://localhost", null); Hd4 objHd4 = new Hd4(request, "/hdCloudConfig.json"); string directoryPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); string filePath = directoryPath + "\\" + "communityTest.zip"; _store = HdStore.Instance; _store.SetPath(directoryPath, true); objHd4.CommunityFetchArchive(); _isCommunitySetupDone = false; } }
public void test35_ultimate_community_fetchArchive() { HttpRequest request = new HttpRequest(null, "http://localhost", null); _objHd4 = new Hd4(request, _ultimateConfig); HdStore store = HdStore.Instance; store.Purge(); _objHd4.IsDownloadableFiles = true; dynamic result = _objHd4.CommunityFetchArchive(); Dictionary<string, dynamic> data = _objHd4.GetReply(); Assert.IsTrue(result); //TODO: to check and show bytes get }