I want to setup my fake like this:
A.CallTo(() => this.repository.Create(A<PersonModel>._)).Returns(XYZ);
where XYZ
is the same variable as was inserted at A<PersonModel>._
so if Create
is called with mySamplePersonModel
I want the method to return mySamplePersonModel
.
How can I achieve this?
Thanks in advance