示例#1
0
        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);
        }
示例#2
0
        public void CreateExmpleFeature_NonFeatureType_NotDoAnyThing()
        {
            var filter = new FeatureExampleFilter();

            var schema = new Schema();

            filter.Apply(schema, null);

            Assert.AreEqual(null, schema.Example);
        }