Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created August 1, 2017 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/7d8ce2350e5b25b98689e8974bb2c267 to your computer and use it in GitHub Desktop.
Save justinyoo/7d8ce2350e5b25b98689e8974bb2c267 to your computer and use it in GitHub Desktop.
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