Example #1
0
        public void Given_token_is_invalid_then_return_default_object()
        {
            A.CallTo(() => _accessTokenClientRepo.GetClientForTokenAsync(Guid.Parse(TokenGuid)))
            .Returns(new OAuthTokenClient[0]);

            Act(TokenGuid);

            ApiClientDetailsTests.AssertIsDefaultObject(_response);

            A.CallTo(() => _accessTokenClientRepo.GetClientForTokenAsync(Guid.Parse(TokenGuid)))
            .MustHaveHappened();
        }
Example #2
0
        public void Given_token_is_not_Guid_then_return_default_object()
        {
            Act("not a Guid");

            ApiClientDetailsTests.AssertIsDefaultObject(_response);
        }