コード例 #1
0
        public void ValidateDailyTransactionDetailLookup()
        {
            DLSMapper.Configure();
            var request = new DailyTransactionDetailLookupRequest()
            {
                AgentId   = "40698809",
                PosId     = "",
                StartDate = "09/27/2017"
            };

            var header = new Header();
            var processingInstruction = new ProcessingInstruction
            {
                Action = "DailyTransactionDetailLookup",
                RollbackTransaction = false
            };


            header.ProcessingInstruction = processingInstruction;
            request.header = header;

            request.header = header;

            var config = new DLSConfig();
            var proxy  = new DLSProxyFactory(config);
            var repo   = new DLSRepository(proxy);
            var x      = repo.DailyTransactionDetailLookup(false, request);
        }
コード例 #2
0
        private void ConfigureDls(IServiceCollection services)
        {
            DLSMapper.Configure();

            services.AddSingleton <IDLSConfig>(dlscfg => {
                return(new DLSConfig
                {
                    DLSUrl = ConfigurationManager.AppSettings["DLSUrl"],
                    EndpoingBehaviors = new List <IEndpointBehavior> {
                        new MessageLogger()
                    }
                });
            });

            services.AddSingleton <IDLSProxyFactory, DLSProxyFactory>();
            services.AddSingleton <MoneyGram.DLS.ITrainingModeRepository, MoneyGram.DLS.TrainingModeRepository>();

            services.AddSingleton <IDLSRepository, DLSRepository>();
            services.Decorate <IDLSRepository, DLSRepositoryTraining>();
        }
コード例 #3
0
 public void ValidateAutoMapperConfigurationDls()
 {
     DLSMapper.Configure();
 }