public async Task DeleteContextWithFixedConfiguration() { var guid = Guid.NewGuid().ToString(); await mTweekApi.AppendContext("test", "delete-context-test-1", new Dictionary <string, FSharpUtils.Newtonsoft.JsonValue>() { ["@fixed:tests/fixed/some_fixed_configuration_delete"] = NewString(guid.ToString()) }); var results = await mTweekApi.GetConfigurations("tests/fixed/some_fixed_configuration_delete", new Dictionary <string, string>() { ["test"] = "delete-context-test-1" }); Assert.Equal(guid, results.ToString()); await mTweekApi.RemoveFromContext("test", "delete-context-test-1", "@fixed:tests/fixed/some_fixed_configuration_delete"); results = await mTweekApi.GetConfigurations("tests/fixed/some_fixed_configuration_delete", new Dictionary <string, string>() { ["test"] = "delete-context-test-1" }); Assert.Equal(JTokenType.Null, results.Type); }
private bool disposedValue = false; // To detect redundant calls protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { Task.WaitAll( mTweekApi.RemoveFromContext("test", "smokeTest1", "FavoriteFruit"), mTweekApi.RemoveFromContext("test", "smokeTest1", "NickName"), mTweekApi.RemoveFromContext("test", "smokeTest1", "Age") ); } disposedValue = true; } }