public async Task When_JsonWebKeys_Are_Rotated_Then_Operation_Should_Be_Called() { // ARRANGE InitializeFakeObjects(); const bool rotateSuccess = true; _rotateJsonWebKeysOperationStub.Setup(r => r.Execute()) .Returns(Task.FromResult(rotateSuccess)); // ACT var result = await _jwksActions.RotateJwks(); // ASSERT Assert.True(result == rotateSuccess); _rotateJsonWebKeysOperationStub.Verify(r => r.Execute()); }
public async Task <bool> Put() { return(await _jwksActions.RotateJwks()); }