public void GetWellKnownChallengeToken_WhenWhiteSpaceWasReturnedFromConfiguration_ReturnsNull()
        {
            IAcmeChallengeResolver sut = CreateSut(wellKnownChallengeToken: " ");

            string result = sut.GetWellKnownChallengeToken();

            Assert.That(result, Is.Null);
        }
        public void GetWellKnownChallengeToken_WhenCalled_AssertGetterWasCalledOnConfigurationWithSecurityAcmeChallengeWellKnownChallengeToken()
        {
            IAcmeChallengeResolver sut = CreateSut();

            sut.GetWellKnownChallengeToken();

            _configurationMock.Verify(m => m["Security:AcmeChallenge:WellKnownChallengeToken"], Times.Once);
        }
        public void GetWellKnownChallengeToken_WhenNonNullEmptyOrWhiteSpaceWasReturnedFromConfiguration_ReturnsValueFromConfiguration()
        {
            string wellKnownChallengeToken = _fixture.Create <string>();
            IAcmeChallengeResolver sut     = CreateSut(wellKnownChallengeToken: wellKnownChallengeToken);

            string result = sut.GetWellKnownChallengeToken();

            Assert.That(result, Is.EqualTo(wellKnownChallengeToken));
        }