public async Task SaveFeatureFlagIntegrationTest() { //Arrange FeatureFlagsStorageTable da = new FeatureFlagsStorageTable(Configuration); string featureFlagName = "UnitTestFeatureFlag01"; FeatureFlag featureFlag = new FeatureFlag(featureFlagName) { Name = featureFlagName, Description = "Feature Flag for unit tests", PRIsEnabled = false, DevIsEnabled = true, DevViewCount = 1, QAIsEnabled = false, ProdIsEnabled = false, LastUpdated = DateTime.Now }; //Act bool result = await da.SaveFeatureFlag(featureFlag); //Assert Assert.IsTrue(result == true); }
public async Task DeleteFeatureFlagIntegrationTest() { //Arrange FeatureFlagsStorageTable da = new FeatureFlagsStorageTable(Configuration); string featureFlagName = "TestFeatureFlag02"; FeatureFlag featureFlag = new FeatureFlag(featureFlagName) { Name = featureFlagName, Description = "Feature Flag #2", PRIsEnabled = false, DevIsEnabled = false, QAIsEnabled = false, ProdIsEnabled = false, LastUpdated = DateTime.Now }; //Act await da.SaveFeatureFlag(featureFlag); bool result = await da.DeleteFeatureFlag(featureFlagName); //Assert Assert.IsTrue(result == true); }