public async Task <bool> UpdateChangeFailureRate(string organization_owner, string project_repo, string buildName_workflowName, int percentComplete, int numberOfDays) { TableStorageAuth tableStorageAuth = Common.GenerateTableAuthorization(Configuration); ChangeFailureRateDA da = new ChangeFailureRateDA(); return(await da.UpdateChangeFailureRate(tableStorageAuth, organization_owner, project_repo, buildName_workflowName, percentComplete, numberOfDays)); }
public async Task UpdateChangeFailureRateDAIntegrationTest() { //Arrange TableStorageAuth tableStorageAuth = Common.GenerateTableAuthorization(Configuration); string organization = "samsmithnz"; string project = "SamLearnsAzure"; string buildName = "SamLearnsAzure.CI"; int percent = 50; int numberOfDays = 1; //Act ChangeFailureRateDA da = new ChangeFailureRateDA(); bool result = await da.UpdateChangeFailureRate(tableStorageAuth, organization, project, buildName, percent, numberOfDays); //Assert Assert.IsTrue(result == true); }