public async void CreateJwtToken_ReturnsJwtToken_ShouldBeReturnCorrectToken(string input, string expectedValue) { var jwtFactory = new JwtTokenFactory(); var token = await jwtFactory.CreateJwtToken(input); Assert.Contains(expectedValue, token); }
public void CreateJwtToken_ReturnsException_ShouldBeReturnException(string input) { var jwtFactory = new JwtTokenFactory(); Assert.ThrowsAsync <ArgumentException>(async() => await jwtFactory.CreateJwtToken(input)); }