public void UseGraphQLHttpGet_Builder_BuilderIsNull() { // arrange // act Action action = () => HttpGetApplicationBuilderExtensions .UseGraphQLHttpGet(null); // assert Assert.Throws <ArgumentNullException>(action); }
public void UseGraphQLHttpGet_BuilderOptions_OptionsIsNull() { // arrange IApplicationBuilder builder = Mock.Of <IApplicationBuilder>(); // act Action action = () => HttpGetApplicationBuilderExtensions .UseGraphQLHttpGet(builder, null); // assert Assert.Throws <ArgumentNullException>(action); }
public void UseGraphQLHttpGet_BuilderOptions_BuilderIsNull() { // arrange var options = new HttpGetMiddlewareOptions(); // act Action action = () => HttpGetApplicationBuilderExtensions .UseGraphQLHttpGet(null, options); // assert Assert.Throws <ArgumentNullException>(action); }