2
FakeItEasy返回对象我想设置我的假像这样:,该方法被调用
A.CallTo(() => this.repository.Create(A<PersonModel>._)).Returns(XYZ);
其中XYZ
是相同的变量作为A<PersonModel>._
所以插入如果Create
被调用mySamplePersonModel
我想要的方法返回mySamplePersonModel
。
我该如何做到这一点?
在此先感谢