I have a service layer method that recieves an object(Dto) as a parameter.
Within that method I new up a business object and i pass the values of the properties of the Dto to the properties of the business object. I then pass the business object as a parameter to a repository method call.
How will my unit test ensure that the business object declared in the service method under test receives the right value into its properties?
You can mock the repository (I hope that you can inject it into the service layer) and check whether the business object passed into the repository has the expected property values.
EDIT: An example
Infrastructure:
Test pseudocode (because RhinoMockі not the Moq):