public void should_mark_as_deleted() { //act Repository.Delete(new TestEntity() { Id = 4, Field = "Super" }); //assert A.CallTo(() => SessionScope.MarkAsDeleted(A <TestEntity> .That.Matches(t => t.Id == 4 && t.Field == "Super"))).MustHaveHappened(); }