Exemple #1
0
        public void UseGraphQLHttpPost_Builder_BuilderIsNull()
        {
            // arrange
            // act
            Action action =
                () => HttpPostApplicationBuilderExtensions
                .UseGraphQLHttpPost(null);

            // assert
            Assert.Throws <ArgumentNullException>(action);
        }
Exemple #2
0
        public void UseGraphQLHttpPost_BuilderOptions_OptionsIsNull()
        {
            // arrange
            IApplicationBuilder builder = Mock.Of <IApplicationBuilder>();

            // act
            Action action =
                () => HttpPostApplicationBuilderExtensions
                .UseGraphQLHttpPost(builder, null);

            // assert
            Assert.Throws <ArgumentNullException>(action);
        }
Exemple #3
0
        public void UseGraphQLHttpPost_BuilderOptions_BuilderIsNull()
        {
            // arrange
            var options = new HttpPostMiddlewareOptions();

            // act
            Action action =
                () => HttpPostApplicationBuilderExtensions
                .UseGraphQLHttpPost(null, options);

            // assert
            Assert.Throws <ArgumentNullException>(action);
        }