private static LotDetailsResponse ProjectLotDetailsResult(ILotQualitySingleSummaryReturn lotDetails) { return(new LotDetailsResponse { LotSummary = Mapper.Map <LotQualitySummaryResponse>(lotDetails), AttributeNamesByProductType = lotDetails.AttributeNamesByProductType, }); }
public new void SetUp() { base.SetUp(); _expectedResult = Fixture.Create <ILotQualitySingleSummaryReturn>(); MockLotService .Setup(m => m.GetLotSummary(Key)) .Returns(new SuccessResult <ILotQualitySingleSummaryReturn>(_expectedResult)); AutoMapperConfiguration.Configure(); }