public void InitTest()
 {
     var serviceDetails = new DataServiceDetails("File", @"..\..\ExampleData\BrokenScreen.html")
                              {TimeZoneOffset = new TimeSpan(-1, 0, 0)};
     var fileDataService = new FileScraperDataService(serviceDetails);
     StatusProvider = new BuildStatusProvider(fileDataService);
 }
 private IEnumerable<IBuildStatusProvider> CompositeScreenScraperProviderFactory()
 {
     //data service - picked from Google's 1st secrah result. Change the paths to be your CC.Net dashboard path 
     var serviceDetails = new DataServiceDetails("1st Google result for ViewFarmReport.aspx", "http://build.nauck-it.de/ViewFarmReport.aspx", "http://build.nauck-it.de/ViewFarmReport.aspx");
     
     //Set up screen scraper build status provider
     var dataService = new AspectInterceptorFactory().CreateInstance<HttpDataService>(new object[] {serviceDetails});
  
     return new List<IBuildStatusProvider>
                            {
                                new BuildStatusProvider(dataService),
                            };
 }
 public void Build_Is_NotConnected()
 {
     var serviceDetails = new DataServiceDetails("File", @"..\..\ExampleData\NotConnected.html");
     StatusProvider = new BuildStatusProvider(new FileScraperDataService(serviceDetails));
     Assert.IsTrue(StatusProvider.Status() == BuildState.NotConnected);
 }
 public void Build_Is_Building()
 {
     var serviceDetails = new DataServiceDetails("File", @"..\..\ExampleData\BuildingScreen.html");
     StatusProvider = new BuildStatusProvider(new FileScraperDataService(serviceDetails));
     Assert.IsTrue(StatusProvider.Status() == BuildState.Building);
 }
 public void InitTest()
 {
     var serviceDetails = new DataServiceDetails("test", "http://build.fcdev.local/ViewFarmReport.aspx");
     _httpDataService = new HttpDataService(serviceDetails);
 }