public void CellsWorkbookDeleteUnProtectDocumentTest() { string name = "Book1.xlsx"; WorkbookProtectionRequest protection = new WorkbookProtectionRequest(); protection.Password = "******"; protection.ProtectionType = "All"; string folder = null; new Config().UpdateDataFile(folder, name); var response = instance.CellsWorkbookDeleteUnprotectDocument(name, protection, folder); Console.WriteLine(response); }
public void CellsWorkbookDeleteUnProtectDocumentTest() { // TODO uncomment below to test the method and replace null with proper value string name = BOOK1; WorkbookProtectionRequest protection = new WorkbookProtectionRequest(); protection.Password = "******"; protection.ProtectionType = "All"; string folder = TEMPFOLDER; UpdateDataFile(folder, name); var response = instance.CellsWorkbookDeleteUnprotectDocument(name, protection, folder); Assert.IsInstanceOf <SaaSposeResponse>(response, "response is SaaSposeResponse"); Assert.AreEqual(response.Code, 200); }