public void CreateExmpleFeature_FeatureType_UpdateExample() { var filter = new FeatureExampleFilter(); var schema = new Schema(); filter.Apply(schema, new Swashbuckle.AspNetCore.SwaggerGen.SchemaFilterContext(typeof(Feature), null, null)); Assert.AreNotEqual(null, schema.Example); }
public void CreateExmpleFeature_NonFeatureType_NotDoAnyThing() { var filter = new FeatureExampleFilter(); var schema = new Schema(); filter.Apply(schema, null); Assert.AreEqual(null, schema.Example); }