I have following line of code in my controller and need to Setup this for Unit Test.
var result = data.ToList().Select(x=> this.mapper.Map<A_Class, B_Class> (x)).ToList();
I am doign something like following
this.mapperMock.Setup(x => x.Map<A_Class, B_Class>(AAA)).Returns(expectedResult);
Can anyone suggest what should be AAA and what should be expectedResult? In my controller my linq works foreach object of A_Class in Data. How can this be setup in UnitTest