コード例 #1
0
 public CoverPage(IBrokerMgrRepository brokerMgrRepository, IContext context, IConfiguration configuration)
 {
     _configuration = configuration;
     //_dbWrapper = dbWrapper;
     _brokerMgrRepository = brokerMgrRepository;
     _context             = context;
 }
コード例 #2
0
        public BrokerManagerTest()
        {
            // Add the service you want to add like _serviceCollection.AddSingleton<IEncrypt, EncryptDecryptAES>();
            _serviceCollection.AddScoped <IBrokerMgrRepository, BrokerMgrRepository>();

            // Build the service
            _serviceProvider     = _serviceCollection.BuildServiceProvider();
            _brokerMgrRepository = (IBrokerMgrRepository)_serviceProvider.GetService(typeof(IBrokerMgrRepository));

            // Modify the mock object in case needed like  _mockContext.Object.Identity.UserName = "******";
            _mockContext.Object.Identity.BrokerId      = "11047987";
            _mockContext.Object.Identity.InstitutionId = "6027";
        }
コード例 #3
0
 public ACAccountAlgorithm(IBrokerMgrRepository brokerMgrRepository)
 {
     _brokerMgrRepository = brokerMgrRepository;
 }