-
-
Save justinyoo/7d8ce2350e5b25b98689e8974bb2c267 to your computer and use it in GitHub Desktop.
Swashbuckle Pro Tips for ASP.NET Web API #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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