Skip to content

Instantly share code, notes, and snippets.

View andrewjpoole's full-sized avatar

Andrew Poole andrewjpoole

  • ClearBank Ltd
  • Somerset, UK
View GitHub Profile
@andrewjpoole
andrewjpoole / empty-given-when-and-then-classes-for-component-tests.cs
Last active July 30, 2023 22:24
Empty Given, When and Then classes for component testing
public class Given
{
private readonly XyzApiWebApplicationFactory context; // replace this type with your specific WebApplicationFactory etc
public Given(XyzApiWebApplicationFactory context)
{
this.context = context;
}
public static Given UsingThe(XyzApiWebApplicationFactory context) => new(context);