コード例 #1
0
ファイル: Program.cs プロジェクト: TilsonP/DDD-Financiero
        private static void ConsignarCuentaBancaria(BancoContext context)
        {
            #region  Consignar

            ConsignarService _service = new ConsignarService(new UnitOfWork(context));
            var request = new ConsignarRequest()
            {
                NumeroCuenta = "524255", Valor = 1000
            };

            ConsignarResponse response = _service.Ejecutar(request);

            System.Console.WriteLine(response.Mensaje);
            #endregion
            System.Console.ReadKey();
        }
コード例 #2
0
        private static void Abonar(BancoContext context)
        {
            #region  Consignar

            ConsignarService _service = new ConsignarService(new UnitOfWork(context));
            var request = new ConsignarRequest()
            {
                Cedula = "524255", Valor = 1000000, Fecha = DateTime.Now
            };

            ConsignarResponse response = _service.Ejecutar(request);

            System.Console.WriteLine(response.Mensaje);
            #endregion
            System.Console.ReadKey();
        }