public CoverPage(IBrokerMgrRepository brokerMgrRepository, IContext context, IConfiguration configuration) { _configuration = configuration; //_dbWrapper = dbWrapper; _brokerMgrRepository = brokerMgrRepository; _context = context; }
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"; }
public ACAccountAlgorithm(IBrokerMgrRepository brokerMgrRepository) { _brokerMgrRepository = brokerMgrRepository; }