public void ShouldSetGetEndpoint() { // Given var options = new TokensIssuingOptions(); const string expectedGetEndpoint = "/api/Account/Token"; // When options.WithGetEndpotint(expectedGetEndpoint); // Then Assert.Equal(expectedGetEndpoint, options.GetEndpotint); }
public void WithGetEndpotintShouldValidateInput(TokensIssuingOptions options, string endpoint) { Assert.Throws <ArgumentNullException>(() => options.WithGetEndpotint(endpoint)); }