public void UseGraphQLHttpGet_BuilderServices_ServicesIsNull() { // arrange IAppBuilder builder = Mock.Of <IAppBuilder>(); // act Action action = () => HttpGetApplicationBuilderExtensions .UseGraphQLHttpGet(builder, null); // assert Assert.Throws <ArgumentNullException>(action); }
public void UseGraphQLHttpGet_BuilderServices_BuilderIsNull() { // arrange IServiceProvider service = new EmptyServiceProvider(); // act Action action = () => HttpGetApplicationBuilderExtensions .UseGraphQLHttpGet(null, service); // assert Assert.Throws <ArgumentNullException>(action); }