public ReceiptViewModel BuildFor(DibsPaymentProcessingResult processingResult)
 {
     var receiptPage = _contentRepository.Get<ReceiptPage>(_siteConfiguration.GetSettings().ReceiptPage);
     var model = new ReceiptViewModel(receiptPage);
     model.CheckoutMessage = processingResult.Message;
     model.Order = new OrderViewModel(_currentMarket.GetCurrentMarket().DefaultCurrency.Format, processingResult.Order);
     return model;
 }
            public override void SetUp()
            {
                base.SetUp();

                _paymentResponse = Fixture.Create<DibsPaymentResult>();
                _processingResult = new DibsPaymentProcessingResult(Fixture.Create<PurchaseOrderModel>(),
                    Fixture.Create<string>());
                _dibsPaymentProcessorMock.Setup(x => x.ProcessPaymentResult(_paymentResponse, It.IsAny<IIdentity>()))
                    .Returns(_processingResult);
                _expectedModel = CreateReceiptViewModel();
                _receiptViewModelBuilderMock.Setup(b => b.BuildFor(_processingResult)).Returns(_expectedModel);
            }