public void AddInterfaceTypeT2_BuilderIsNull_ArgumentNullException() { // arrange // act Action action = () => SchemaBuilderExtensions.AddInterfaceType <Foo>(null); // assert Assert.Throws <ArgumentNullException>(action); }
public void AddInterfaceType_ConfigureIsNull_ArgumentNullException() { // arrange // act Action action = () => SchemaBuilderExtensions.AddInterfaceType( SchemaBuilder.New(), null); // assert Assert.Throws <ArgumentNullException>(action); }
public void AddInterfaceTypeT_With_Descriptor() { // arrange SchemaBuilder builder = SchemaBuilder.New(); // act SchemaBuilderExtensions.AddInterfaceType <IMyInterface>( builder, d => d.Field("abc").Type <StringType>()); // assert builder .ModifyOptions(o => o.StrictValidation = false) .Create() .ToString() .MatchSnapshot(); }