Пример #1
0
        public async Task AzUpdateSamLearnsAzureSettingDAIntegrationTest()
        {
            //Arrange
            string           patToken          = Configuration["AppSettings:AzureDevOpsPatToken"];
            TableStorageAuth tableStorageAuth  = Common.GenerateTableAuthorization(Configuration);
            string           organization      = "samsmithnz";
            string           project           = "SamLearnsAzure";
            string           repositoryId      = "SamLearnsAzure";
            string           branch            = "refs/heads/master";
            string           buildName         = "SamLearnsAzure.CI";
            string           buildId           = "3673";
            string           resourceGroupName = "SamLearnsAzureProd";
            int itemOrder = 1;

            //Act
            AzureTableStorageDA da = new AzureTableStorageDA();
            bool result            = await da.UpdateAzureDevOpsSetting(patToken, tableStorageAuth, tableStorageAuth.TableAzureDevOpsSettings,
                                                                       organization, project, repositoryId, branch, buildName, buildId, resourceGroupName, itemOrder);

            //Assert
            Assert.IsTrue(result == true);
        }