Exemplo n.º 1
0
        public async Task GetEnterpriseSettingsAsync_Success()
        {
            var jsonClient = new JsonClient("29401642-b24f-4986-af3d-67af2e3f893c", "testsuccess");

            string json = await jsonClient.GetEnterpriseSettingsAsync();

            Assert.AreEqual("{\"extension_filter\":{\"mode\":\"allow\",\"list\":[]},\"created_at\":\"0001-01-01T00:00:00\",\"updated_at\":\"0001-01-01T00:00:00\",\"default_security_profile_id\":null,\"pdf_language\":\"en\",\"use_pdfa_audit_records\":false,\"international_dialing_plan\":\"us\",\"include_users_in_autocomplete\":true,\"include_favorites_in_autocomplete\":true}", json);
        }
Exemplo n.º 2
0
        public async Task GetEnterpriseSettingsAsync_GetEnterpriseSettingsError()
        {
            var jsonClient = new JsonClient("29401642-b24f-4986-af3d-67af2e3f893c", "testurisuccess");

            try
            {
                string json = await jsonClient.GetEnterpriseSettingsAsync();
            }
            catch (Exceptions.SendSecureException e)
            {
                Assert.AreEqual(404, e.Code);
                throw;
            }
        }