Exemplo n.º 1
0
        public new static void MyClassInitialize(TestContext testContext)
        {
            BaseIntegrationTests.MyClassInitialize(testContext);

            WebCallResult res = UserTemplate.AddUserTemplate(_connectionServer, "voicemailusertemplate", "test" + Guid.NewGuid().ToString(),
                                                             "test_" + Guid.NewGuid().ToString(), null, out _userTemplate);

            Assert.IsTrue(res.Success, "Failed to create new User Template:" + res);
        }
Exemplo n.º 2
0
        public void AddUserTemplate_InvalidTemplateAlias_Failure()
        {
            var res = UserTemplate.AddUserTemplate(_connectionServer, "bogus", "alias", "name", null);

            Assert.IsFalse(res.Success, "Static call to AddUserTemplate did not fail with: invalid template alias");
        }
Exemplo n.º 3
0
        public void AddUserTemplate_EmptyDisplayName_Failure()
        {
            var res = UserTemplate.AddUserTemplate(_mockServer, "voicemailusertemplate", "alias", "", null);

            Assert.IsFalse(res.Success, "Static call to AddUserTemplate did not fail with: empty display name");
        }
Exemplo n.º 4
0
        public void AddUserTemplate_EmptyTemplateAlias_Failure()
        {
            var res = UserTemplate.AddUserTemplate(_mockServer, "", "alias", "name", null);

            Assert.IsFalse(res.Success, "Static call to AddUserTemplate did not fail with: empty template alias");
        }
Exemplo n.º 5
0
        public void AddUserTemplate_NullConnectionServer_Failure()
        {
            WebCallResult res = UserTemplate.AddUserTemplate(null, "voicemailusertemplate", "alias", "name", null);

            Assert.IsFalse(res.Success, "Static call to AddUserTemplate did not fail with: null ConnectionServer");
        }