public void GetConsumerId_ThrowsInvalidOperationException_IfNoAuthProviders() { // NOTE Running this in separate apphost as internally checks a public static prop which may have been set in other tests noAuthDomain.DoCallBack(() => { var keyGenerator = new LimitKeyGenerator(); Action action = () => keyGenerator.GetConsumerId(new MockHttpRequest()); action.Should().Throw <InvalidOperationException>(); }); }
public void GetConsumerId_ThrowsInvalidOperationException_IfNoAuthProviders() { // NOTE Running this in separate apphost as internally checks a public static prop which may have been set in other tests noAuthDomain.DoCallBack(() => { var keyGenerator = new LimitKeyGenerator(); Action action = () => keyGenerator.GetConsumerId(new MockHttpRequest()); action.ShouldThrow<InvalidOperationException>(); }); }