public void MissingCredentialsThrowAnException() {
// Arrange, act, assert
var exception = Assert.Throws<ArgumentException>(() => CreateResourceServer(options => {
options.Authority = "http://www.fabrikam.com/";
}));
Assert.Equal("options", exception.ParamName);
Assert.StartsWith("Client credentials must be configured.", exception.Message);
}