Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save joebuschmann/fcbe058b70b89d288292 to your computer and use it in GitHub Desktop.

Select an option

Save joebuschmann/fcbe058b70b89d288292 to your computer and use it in GitHub Desktop.
When building complex test data - code this
[Given(@"the customer")]
public void GivenTheCustomerFixed(Table table)
{
_customer = table.CreateInstance<Customer>();
}
[Given(@"the address")]
public void GivenTheAddress(Table table)
{
_customer.Address = table.CreateInstance<Address>();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment