public async Task When_There_Is_No_JsonWebKeys_To_Rotate_Then_False_Is_Returned() { // ARRANGE InitializeFakeObjects(); _jsonWebKeyRepositoryStub.Setup(j => j.GetAllAsync()) .Returns(() => Task.FromResult((ICollection <JsonWebKey>)null)); // ACT var result = await _rotateJsonWebKeysOperation.Execute(); // ASSERT Assert.False(result); }
public async Task <bool> RotateJwks() { return(await _rotateJsonWebKeysOperation.Execute()); }