示例#1
0
        public async Task GHUpdateSamsFeatureFlagsSettingDAIntegrationTest()
        {
            //Arrange
            string           clientId          = Configuration["AppSettings:GitHubClientId"];
            string           clientSecret      = Configuration["AppSettings:GitHubClientSecret"];
            TableStorageAuth tableStorageAuth  = Common.GenerateTableAuthorization(Configuration);
            string           owner             = "samsmithnz";
            string           repo              = "SamsFeatureFlags";
            string           branch            = "master";
            string           workflowName      = "SamsFeatureFlags CI/CD";
            string           workflowId        = "108084";
            string           resourceGroupName = "SamLearnsAzureFeatureFlags";
            int itemOrder = 3;

            //Act
            AzureTableStorageDA da = new AzureTableStorageDA();
            bool result            = await da.UpdateGitHubSetting(clientId, clientSecret, tableStorageAuth, tableStorageAuth.TableGitHubSettings,
                                                                  owner, repo, branch, workflowName, workflowId, resourceGroupName, itemOrder);

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