Non-Null

Specification

NonNulls are created as instances of NonNull.

Creating NonNull

NonNull is created by giving it itemType it will apply to.

        [Fact]
        public void Define_NonNull()
        {
            /* Given */
            var itemType = ScalarType.Int;

            /* When */
            var nonNull = new NonNull(itemType);

            /* Then */
            Assert.Equal(itemType, nonNull.OfType);
        }