public void TestMethod_01() { var importClient = new ImportApiEndpoint(BASE_URL); var result = importClient.Post(BIN_FILE); Assert.IsTrue(result, "Upload is failed"); Console.WriteLine("Binary uploaded."); }
/// <summary> /// Upload binary /// </summary> private static void Upload(string file) { var importClient = new ImportApiEndpoint(BASE_URL); var result = importClient.Post(file); if (result) { Console.WriteLine("Binary file is uploaded."); } }