Example #1
0
        public void CellsWorkbookDeleteDecryptDocumentTest()
        {
            string name = "Book1.xlsx";
            WorkbookEncryptionRequest encryption = new WorkbookEncryptionRequest();

            encryption.Password       = "******";
            encryption.KeyLength      = 128;
            encryption.EncryptionType = "XOR";
            string folder = null;

            new Config().UpdateDataFile(folder, name);
            var response = instance.CellsWorkbookDeleteDecryptDocument(name, encryption, folder);

            Console.WriteLine(response);
        }
Example #2
0
        public void CellsWorkbookDeleteDecryptDocumentTest()
        {
            // TODO uncomment below to test the method and replace null with proper value
            string name = BOOK1;
            WorkbookEncryptionRequest encryption = new WorkbookEncryptionRequest();

            encryption.Password       = "******";
            encryption.KeyLength      = 128;
            encryption.EncryptionType = "XOR";
            string folder = TEMPFOLDER;

            UpdateDataFile(folder, name);
            var response = instance.CellsWorkbookDeleteDecryptDocument(name, encryption, folder);

            Assert.IsInstanceOf <SaaSposeResponse>(response, "response is SaaSposeResponse");
            Assert.AreEqual(response.Code, 200);
        }