Exemplo n.º 1
0
        public void Sucesso()
        {
            var request = new HabilitarServicoRequest()
            {
                CodigoCliente = 1,
                CodigoServico = "1"
            };

            var business = new HabilitarServicoBL();

            var response = business.Execute(request);

            Assert.IsNotNull(response);
            Assert.IsTrue(response.Status == Foundation.ExecutionStatus.Success);
        }
Exemplo n.º 2
0
        public void CodigoServicoNaoExistente()
        {
            var request = new HabilitarServicoRequest()
            {
                CodigoCliente = 1,
                CodigoServico = "-1"
            };

            var business = new HabilitarServicoBL();

            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);
        }
Exemplo n.º 3
0
 public void TestMethod1()
 {
     var bl = new HabilitarServicoBL();
     bl.Execute(new HabilitarServicoRequest() {});
 }