コード例 #1
0
        public async Task AzUpdatePRsDAIntegrationTest()
        {
            //Arrange
            string           patToken         = Configuration["AppSettings:AzureDevOpsPatToken"];
            TableStorageAuth tableStorageAuth = Common.GenerateTableAuthorization(Configuration);
            string           organization     = "samsmithnz";
            string           project          = "SamLearnsAzure";
            string           repositoryId     = "SamLearnsAzure";
            int numberOfDays     = 30;
            int maxNumberOfItems = 20;

            //Act
            AzureTableStorageDA da = new AzureTableStorageDA();
            int itemsAdded         = await da.UpdateAzureDevOpsPullRequests(patToken, tableStorageAuth,
                                                                            organization, project, repositoryId, numberOfDays, maxNumberOfItems);

            //Assert
            Assert.IsTrue(itemsAdded >= 0);
        }