Ejemplo n.º 1
0
 /// <summary>
 /// Insertar configuracion de caja
 /// </summary>
 /// <param name="configurationService">Objeto de la caja contiene codigo, ip estatica y codigo empleado</param>
 /// <returns></returns>
 public ResponseBussiness <OperationResponse> InsertConfigurationBox(ConfiguracionServiceRequest configurationService)
 {
     return(tryCatch.SafeExecutor(() =>
     {
         return repository.InsertConfigurationBox(configurationService.CodigoCaja, configurationService.IpEstaticaCaja, configurationService.CodigoEmpleado);
     }));
 }
Ejemplo n.º 2
0
        public void InsertConfigurationServiceTest()
        {
            InstallationServiceBusiness installationServiceBusiness = new InstallationServiceBusiness();
            ConfiguracionServiceRequest configurationService        = new ConfiguracionServiceRequest();

            configurationService.CodigoCaja     = 4;
            configurationService.IpEstaticaCaja = "192.192";
            configurationService.CodigoEmpleado = 4;
            var result = installationServiceBusiness.InsertConfigurationBox(configurationService);

            Assert.IsTrue(result.Data.CodeNumber == "200");
        }
Ejemplo n.º 3
0
        public ResponseBussiness <OperationResponse> InsertConfigurationBox(ConfiguracionServiceRequest configurationServiceRequest)
        {
            ResponseBussiness <OperationResponse> response = new InstallationServiceBusiness().InsertConfigurationBox(configurationServiceRequest);

            return(response);
        }