public void SubController_SuspendRestoreService_Suspend()
        {
            var sub = Data.Data.Simpltest1();

            var expectedSvcStatus = new ServiceProfileStatus
            {
                IsDataSuspended = true,
                IsVideoSuspended = false,
                IsVoiceSuspended = false
            };
            const string operation = "Suspend";
            const string service = "data";

            var result = _subscriberController.SuspendRestoreService(sub.ID, operation, service) as JsonResult;
            if (result != null)
            {
            var data = result.Data as ActionResponse;
                Assert.IsTrue(data != null && data.success);
            Assert.IsTrue(string.IsNullOrEmpty(data.errorMessage), data.errorMessage);
            }

            using (var client = new RosettianClient())
            {
                var actualSvcStatus = client.GetServiceProfileStatuses(sub.ID, _user);
                Common.Validation.ValidateServiceProfileStatus(expectedSvcStatus, actualSvcStatus);
            }
        }
        public void SubController_SuspendRestoreService_Restore()
        {
            var sub = Data.Data.Simpltest1();

            //Suspend all services (Data, Video, Voice)
            var svctypes = new ServiceClassTypeCollection
            {
                ServiceClassType.Data,
                ServiceClassType.Video,
                ServiceClassType.Voice
            };
            var expectedSvcStatus = new ServiceProfileStatus
            {
                IsDataSuspended = true,
                IsVideoSuspended = true,
                IsVoiceSuspended = true
            };

            ServiceProfileStatus actualSvcStatus;

            using (var client = new RosettianClient())
            {
                client.SuspendService(sub.ID, svctypes, _user);
                actualSvcStatus = client.GetServiceProfileStatuses(sub.ID, _user);
                Common.Validation.ValidateServiceProfileStatus(expectedSvcStatus, actualSvcStatus);
            }

            //Restore video
            const string operation = "Restore";
            const string service = "video";
            expectedSvcStatus = new ServiceProfileStatus
            {
                IsDataSuspended = true,
                IsVideoSuspended = false,
                IsVoiceSuspended = true
            };
            var result = _subscriberController.SuspendRestoreService(sub.ID, operation, service) as JsonResult;
            if (result != null)
            {
            var data = result.Data as ActionResponse;
                Assert.IsTrue(data != null && data.success);
            Assert.IsTrue(string.IsNullOrEmpty(data.errorMessage), data.errorMessage);
            }

            using (var client = new RosettianClient())
            {
                actualSvcStatus = client.GetServiceProfileStatuses(sub.ID, _user);
                Common.Validation.ValidateServiceProfileStatus(expectedSvcStatus, actualSvcStatus);
            }
        }