public void NeedsUpdateRoleTest() { Assert.IsTrue(cache.NeedsUpdate("resouce:operation")); cache.AddRole("resouce:operation", "operator"); Assert.IsFalse(cache.NeedsUpdate("resouce:operation")); }
Task <bool> IIamProvider.NeedsUpdate(string policyName, IIamProviderCache cache) { var ret = cache.NeedsUpdate(policyName); return(Task.FromResult(ret)); }