Example #1
0
 public void Arrange()
 {
     _sucessBuildId   = "827572";
     _teamCityService = Substitute.For <ITeamCityService>();
     _teamCityService.GetBuildStatus(_sucessBuildId).Returns("SUCCESS");
     _testEnvironmentService        = Substitute.For <ITestEnvironmentService>();
     _buildStatusDataStorageService = Substitute.For <IBuildStatusDataStorageService>();
     _updateBuildStatusController   = new UpdateBuildStatusController(_teamCityService, _testEnvironmentService, _buildStatusDataStorageService);
     SetupController(HttpMethod.Post);
 }
Example #2
0
 public UpdateBuildStatusController(ITeamCityService teamCityService, ITestEnvironmentService testEnvironmentService, IBuildStatusDataStorageService buildStatusDataStorageService)
 {
     _teamCityService               = teamCityService;
     _testEnvironmentService        = testEnvironmentService;
     _buildStatusDataStorageService = buildStatusDataStorageService;
 }