public void BackgroundDataLoadTest() { RallyBackgroundData.SetDbContext(_context); var globalSetting = RallyBackgroundData.Instance.RallyGlobalConfiguration; var mappings = RallyBackgroundData.Instance.RallySlackMappings; Assert.IsNotNull(globalSetting); Assert.IsTrue(mappings.Count > 1); }
public RallyController() { RallyCatDbContext.SetConnectionString("RallyCatConnection"); _dbContext = RallyCatDbContext.QueryDb(); RallyBackgroundData.SetDbContext(_dbContext); _rallyService = new RallyService(); _graphicService = new GraphicService(); _azureService = new AzureService(RallyBackgroundData.Instance); }
public AzureService( RallyBackgroundData backgroundData) { _rallyBackgroundData = backgroundData; }
public RallyService(RallyBackgroundData backgroundData) { _pool = new RallyApiConnectionPool(); _rallyToken = backgroundData.RallyGlobalConfiguration.RallyToken; _rallyUrl = backgroundData.RallyGlobalConfiguration.RallyUrl; }