Skip to content

Instantly share code, notes, and snippets.

@PiotrPerak
Created November 23, 2018 09:26
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 PiotrPerak/431747f483e81681c93ec092b8f4a75c to your computer and use it in GitHub Desktop.
Save PiotrPerak/431747f483e81681c93ec092b8f4a75c to your computer and use it in GitHub Desktop.
public TestedObject CreateSut(IDependency dep = null, IDependency2 dep2 = null)
{
return new TestedObject(
dep ?? Mock.Of<IDependency>(),
dep2 ?? Mock.Of<IDependency2>());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment