This file contains hidden or 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 partial class App : Application | |
{ | |
[NotNull] | |
public static IServiceProvider? ServiceProvider { get; private set; } | |
[STAThread] | |
public static void Main(string[] args) | |
{ | |
using IHost host = CreateHostBuilder(args).Build(); | |
host.Start(); |
This is a simple writeup of how snapshot testing is done on the OpenAPI spec for Velopack API. Though the implementation can be easily applied to other services.
The API project should include an OpenAPI endpoint. The most popular libraries for this are Swashbuckle, NSwag, and soon built-in support.
The API project should be configured to serve up the Open API specification. For Velopack, we are using NSwag. The setup in the API resembles the following:
Kevin Bost
- Privacy: Refers to how your information is used and controlled. It is often related to security but just because something is not private does not mean it is not secure.
- Security: Refers to how refers to your information is protected. It is important to keep sensitive information secure.
- Information that should be private
- Financial information (Credit card number, account numbers, bank names, financial status)
- Personal information (Social security number, family member names, driver’s license number, birth place)
- Insurance information
OlderNewer