public void Excluded()
 {
     MyReplacementManager.CreateReplacementFile(@"
     [K3224]
     Exclude=^.+$");
     var reader = new FakeScanner(@"
     23.11.2012	US$	209,64	162,20	H	8021	SWZ Member gift");
     var processingDonations = new ProcessingOtherTransfers(3224, reader);
     Assert.That(processingDonations.NextDonation, Is.Null);
 }
 public void MultiLineTransfer()
 {
     MyReplacementManager.CreateReplacementFile(string.Empty);
     var reader = new FakeScanner(@"
     23.11.2012	US$	209,64	162,20	H	8021	437921 BT-BANK TRANSFER
                     OPP_TransAmount=-209,64");
     var processingDonations = new ProcessingOtherTransfers(3224, reader);
     AssertEx.DonationEqual(new Donation(162.20m, new DateTime(2012, 11, 23),
         "437921 BT-BANK TRANSFER", UInt32.MaxValue, "Netto; US$ 209,64", 209.64m, "USD"),
         processingDonations.NextDonation);
 }
 public void Replacement()
 {
     MyReplacementManager.CreateReplacementFile(@"
     [Replacements]
     579941 OPP_TransAmount=Mustermann, Markus
     ");
     var reader = new FakeScanner(@"
     23.10.2013	US$	90,00	65,21	H	1310	579941 OPP_TransAmount=-90,00");
     var processingDonations = new ProcessingOtherTransfers(3224, reader);
     var donation = processingDonations.NextDonation;
     Assert.That(donation.Donor, Is.EqualTo("Mustermann, Markus"));
 }
        public void MultipleMonthsGiveSameDonorNo()
        {
            MyReplacementManager.CreateReplacementFile(string.Empty);
            var reader = new FakeScanner(@"
            23.11.2012	US$	209,64	162,20	H	8021	SWZ Member gift");
            var processingDonations = new ProcessingOtherTransfers(3224, reader);
            var donation = processingDonations.NextDonation;
            var firstDonorNo = donation.DonorNo;

            reader = new FakeScanner(@"
            21.12.2012	US$	450,00	423,18	H	8022	SWZ Member gift");
            processingDonations = new ProcessingOtherTransfers(3224, reader);
            donation = processingDonations.NextDonation;
            Assert.AreEqual(firstDonorNo, donation.DonorNo);
        }
 public void Transfer()
 {
     MyReplacementManager.CreateReplacementFile(string.Empty);
     var reader = new FakeScanner(@"
     23.11.2012	US$	209,64	162,20	H	8021	SWZ Member gift");
     var processingDonations = new ProcessingOtherTransfers(3224, reader);
     AssertEx.DonationEqual(new Donation(162.20m, new DateTime(2012, 11, 23),
         "SWZ Member gift", UInt32.MaxValue, "Netto; US$ 209,64", 209.64m, "USD"), processingDonations.NextDonation);
 }