public void TechnicalError()
        {
            var request = new DesabilitarServicoRequest()
            {
                CodigoCliente = 3,
                CodigoServico = "3",
                IlhaDeAtendimento = "Ilha de Atendimento TE",
                TituloDaOcorrencia = "Titulo da Ocorrência TE",
                UserId = new Guid("be12ef3a-000f-e511-80c0-00155d0ef405"),
                CorrelationId = new Guid("be12ef3a-000f-e511-80c0-00155d0ef405")
            };

            var business = new DesabilitarServicoBL();

            var response = business.Execute(request);

            Assert.IsNotNull(response);
            Assert.IsTrue(response.Status == Foundation.ExecutionStatus.TechnicalError);
        }
Beispiel #2
0
 public DesabilitarServicoResponse DesabilitarServico(DesabilitarServicoRequest requestData)
 {
     var business = new DesabilitarServicoBL();
     var response = this.ExecuteBusiness(business, requestData);
     return response;
 }
        public void CodigoServicoNaoExistente()
        {
            var request = new DesabilitarServicoRequest()
            {
                CodigoCliente = 1,
                CodigoServico = "-1"
            };

            var business = new DesabilitarServicoBL();

            var response = business.Execute(request);

            Assert.IsNotNull(response);
            Assert.IsFalse(response.Status == Foundation.ExecutionStatus.Success);
            Assert.AreEqual("9999", response.ErrorCode);
            Assert.AreEqual("RECORD NOT FOUND", response.ErrorMessage);
        }