Unit test


Use Moq CallBack to Verify Object Parameter

Our repositories accept domain models as parameter to save them to the database. Moq's verify works greatly if the method has primitive types like string, int, and bool, not so good at showing error message if the paramter is an object.