Skip to content

Instantly share code, notes, and snippets.

@gerhart92
Last active September 14, 2022 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gerhart92/78729cd06fc18ce217a85bed551aa32d to your computer and use it in GitHub Desktop.
Save gerhart92/78729cd06fc18ce217a85bed551aa32d to your computer and use it in GitHub Desktop.
public Item CreateItem()
{
var db = Substitute.For<Database>();
var item = Substitute.For<Item>(ID.NewID, ItemData.Empty, db);
return item;
}
public Item CreateItemByDatabase(Database db)
{
var item = Substitute.For<Item>(ID.NewID, ItemData.Empty, db);
return item;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment