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); }
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>(); }
public void ValidateAutoMapperConfigurationDls() { DLSMapper.Configure(); }