public void BackgroundDataLoadTest()
        {
            RallyBackgroundData.SetDbContext(_context);
            var globalSetting = RallyBackgroundData.Instance.RallyGlobalConfiguration;
            var mappings      = RallyBackgroundData.Instance.RallySlackMappings;

            Assert.IsNotNull(globalSetting);
            Assert.IsTrue(mappings.Count > 1);
        }
Ejemplo n.º 2
0
 public RallyController()
 {
     RallyCatDbContext.SetConnectionString("RallyCatConnection");
     _dbContext = RallyCatDbContext.QueryDb();
     RallyBackgroundData.SetDbContext(_dbContext);
     _rallyService   = new RallyService();
     _graphicService = new GraphicService();
     _azureService   = new AzureService(RallyBackgroundData.Instance);
 }
Ejemplo n.º 3
0
 public AzureService( RallyBackgroundData backgroundData)
 {
     _rallyBackgroundData = backgroundData;
 }
Ejemplo n.º 4
0
 public RallyService(RallyBackgroundData backgroundData)
 {
     _pool = new RallyApiConnectionPool();
     _rallyToken = backgroundData.RallyGlobalConfiguration.RallyToken;
     _rallyUrl = backgroundData.RallyGlobalConfiguration.RallyUrl;
 }