Exemplo n.º 1
0
        public void UseGraphQLHttpGetSchema_Builder_BuilderIsNull()
        {
            // arrange
            // act
            Action action =
                () => HttpGetSchemaApplicationBuilderExtensions
                .UseGraphQLHttpGetSchema(null);

            // assert
            Assert.Throws <ArgumentNullException>(action);
        }
Exemplo n.º 2
0
        public void UseGraphQLHttpGetSchema_BuilderOptions_OptionsIsNull()
        {
            // arrange
            IApplicationBuilder builder = Mock.Of <IApplicationBuilder>();

            // act
            Action action =
                () => HttpGetSchemaApplicationBuilderExtensions
                .UseGraphQLHttpGetSchema(builder, null);

            // assert
            Assert.Throws <ArgumentNullException>(action);
        }
Exemplo n.º 3
0
        public void UseGraphQLHttpGetSchema_BuilderOptions_BuilderIsNull()
        {
            // arrange
            var options = new HttpGetSchemaMiddlewareOptions();

            // act
            Action action =
                () => HttpGetSchemaApplicationBuilderExtensions
                .UseGraphQLHttpGetSchema(null, options);

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