Skip to content

Instantly share code, notes, and snippets.

@trailmax
Created January 28, 2014 23:39
Show Gist options
  • Save trailmax/8678897 to your computer and use it in GitHub Desktop.
Save trailmax/8678897 to your computer and use it in GitHub Desktop.
[Theory, AutoDomainData]
public void FrozenObjects_AreInjected_IntoSut([Frozen]ILocationAddressRepository repository,
CreateLocationAddressCommandHandler sut, CreateLocationAddressCommand command)
{
// Act
sut.Handle(command);
// Assert
repository.Received().Insert(Arg.Any<LocationAddress>());
repository.Received().Save();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment