Skip to content

Instantly share code, notes, and snippets.


justinyoo/ModelExample.cs Secret

Created Aug 1, 2017
What would you like to do?
Swashbuckle Pro Tips for ASP.NET Web API #2
public abstract class ModelExample<T> : IExamplesProvider where T : class
private readonly IFixture _fixture;
protected ModelExample()
this._fixture = new Fixture();
public virtual object GetExamples()
return this._fixture.Create<T>();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.