Create a gist now

Instantly share code, notes, and snippets.

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