Esempio n. 1
0
        public void UseGraphQLHttpGet_Builder_BuilderIsNull()
        {
            // arrange
            // act
            Action action =
                () => HttpGetApplicationBuilderExtensions
                .UseGraphQLHttpGet(null);

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

            // act
            Action action =
                () => HttpGetApplicationBuilderExtensions
                .UseGraphQLHttpGet(builder, null);

            // assert
            Assert.Throws <ArgumentNullException>(action);
        }
Esempio n. 3
0
        public void UseGraphQLHttpGet_BuilderOptions_BuilderIsNull()
        {
            // arrange
            var options = new HttpGetMiddlewareOptions();

            // act
            Action action =
                () => HttpGetApplicationBuilderExtensions
                .UseGraphQLHttpGet(null, options);

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