public void UseGraphQLHttpPost_BuilderServices_ServicesIsNull() { // arrange IAppBuilder builder = Mock.Of <IAppBuilder>(); // act Action action = () => HttpPostApplicationBuilderExtensions .UseGraphQLHttpPost(builder, null); // assert Assert.Throws <ArgumentNullException>(action); }
public void UseGraphQLHttpPost_BuilderServices_BuilderIsNull() { // arrange IServiceProvider services = new EmptyServiceProvider(); // act Action action = () => HttpPostApplicationBuilderExtensions .UseGraphQLHttpPost(null, services); // assert Assert.Throws <ArgumentNullException>(action); }