public void StaticMethodFailures_DeleteClassOfService()
        {
            //DeleteClassOfService
            var res = ClassOfService.DeleteClassOfService(_connectionServer, "bogus");

            Assert.IsFalse(res.Success, "Static call to DeleteClassOfService did not fail with: invalid objectid");
        }
Exemple #2
0
        public void DeleteClassOfService_NullConnectionServer_Failure()
        {
            //DeleteClassOfService
            var res = ClassOfService.DeleteClassOfService(null, "bogus");

            Assert.IsFalse(res.Success, "Static call to DeleteClassOfService did not fail with: null connectionServer");
        }
Exemple #3
0
        public void GetClassOfService_DeleteClassOfService_Failure()
        {
            _mockTransport.Setup(x => x.GetCupiResponse(It.IsAny <string>(), It.IsAny <MethodType>(), It.IsAny <ConnectionServerRest>(),
                                                        It.IsAny <string>(), It.IsAny <bool>())).Returns(new WebCallResult
            {
                Success      = false,
                ResponseText = "error text",
            });

            var res = ClassOfService.DeleteClassOfService(_mockServer, "ObjectId");

            Assert.IsFalse(res.Success, "Calling DeleteClassOfService with ErrorResponse did not fail");
        }
Exemple #4
0
        public void DeleteClassOfService_EmptyObjectId_Failure()
        {
            var res = ClassOfService.DeleteClassOfService(_mockServer, "");

            Assert.IsFalse(res.Success, "Static call to DeleteClassOfService did not fail with: empty objectid");
        }