Skip to content

Instantly share code, notes, and snippets.

@derekgreer
Created September 15, 2014 22:39
Show Gist options
  • Save derekgreer/0242f925fcfcd94bcb23 to your computer and use it in GitHub Desktop.
Save derekgreer/0242f925fcfcd94bcb23 to your computer and use it in GitHub Desktop.
Configuring ExpectedObject to match on a value you don't have at context setup time
_expectedPaymentAccountingTransaction = new
{
Amount = Expect.Any<decimal>(amount => amount == _paymentEvent.Amount)
}.ToExpectedObject();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment