public DonationBatchDTO CreateDonationBatch(DonationBatchDTO batch)
        {
            var batchId = _mpDonationService.CreateDonationBatch(batch.BatchName, batch.SetupDateTime, batch.BatchTotalAmount,batch.ItemCount, batch.BatchEntryType, batch.DepositId, batch.FinalizedDateTime, batch.ProcessorTransferId);

            batch.Id = batchId;

            foreach (var donation in batch.Donations)
            {
                _mpDonationService.AddDonationToBatch(batchId, int.Parse(donation.Id));
            }

            return (batch);
        }
        public void TestCreateDonationBatch()
        {
            var dto = new DonationBatchDTO
            {
                DepositId = 123,
                BatchEntryType = 2,
                BatchName = "batch name",
                BatchTotalAmount = 456.78M,
                FinalizedDateTime = DateTime.Now,
                ItemCount = 5,
                SetupDateTime = DateTime.Now,
                ProcessorTransferId = "transfer 1",
                Id = 999 // Should be overwritten in service
            };
            dto.Donations.Add(new DonationDTO { Id = "102030"});
            _mpDonationService.Setup(
                mocked =>
                    mocked.CreateDonationBatch(dto.BatchName, dto.SetupDateTime, dto.BatchTotalAmount, dto.ItemCount,
                        dto.BatchEntryType, dto.DepositId, dto.FinalizedDateTime, dto.ProcessorTransferId)).Returns(987);
            _mpDonationService.Setup(mocked => mocked.AddDonationToBatch(987, 102030));

            var response = _fixture.CreateDonationBatch(dto);
            _mpDonationService.VerifyAll();
            Assert.AreSame(dto, response);
            Assert.AreEqual(987, response.Id);
        }