Skip to content

Instantly share code, notes, and snippets.

View Keboo's full-sized avatar

Kevin B Keboo

View GitHub Profile
@Keboo
Keboo / App.xaml.cs
Created June 20, 2022 18:07
MarkupExtension with DI
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();
@Keboo
Keboo / README.md
Created June 7, 2024 18:41
Snapshot testing in Velopack

How to do snapshot testing on OpenAPI spec

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.

Setup the API project

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:

@Keboo
Keboo / README.md
Last active September 1, 2024 06:46
Security Resources

Internet Safety

Kevin Bost

Security and Privacy

  1. 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.
  2. Security: Refers to how refers to your information is protected. It is important to keep sensitive information secure.
  3. 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