コード例 #1
0
        public async void CreateJwtToken_ReturnsJwtToken_ShouldBeReturnCorrectToken(string input, string expectedValue)
        {
            var jwtFactory = new JwtTokenFactory();

            var token = await jwtFactory.CreateJwtToken(input);

            Assert.Contains(expectedValue, token);
        }
コード例 #2
0
        public void CreateJwtToken_ReturnsException_ShouldBeReturnException(string input)
        {
            var jwtFactory = new JwtTokenFactory();

            Assert.ThrowsAsync <ArgumentException>(async() => await jwtFactory.CreateJwtToken(input));
        }