public void Can_cope_with_empty_reconciled_amount()
        {
            // Arrange
            var    cred_card2_in_out_record = new CredCard2InOutRecord();
            string csv_line = String.Format("19/04/2017^^^Acme: Esmerelda's birthday^");

            // Act
            cred_card2_in_out_record.Load(csv_line);

            // Assert
            Assert.AreEqual(0, cred_card2_in_out_record.Reconciled_amount);
        }
        public void Can_cope_with_empty_date()
        {
            // Arrange
            var    cred_card2_in_out_record = new CredCard2InOutRecord();
            var    expected_date            = new DateTime(9999, 9, 9);
            string csv_line = String.Format("^£13.48^^Acme: Esmerelda's birthday^");

            // Act
            cred_card2_in_out_record.Load(csv_line);

            // Assert
            Assert.AreEqual(expected_date, cred_card2_in_out_record.Date);
        }
        public void Can_read_date_from_csv()
        {
            // Arrange
            var    cred_card2_in_out_record = new CredCard2InOutRecord();
            string expected_date_as_string  = "01/04/2017";
            string csv_line      = String.Format("{0}^£13.48^^Acme: Esmerelda's birthday^", expected_date_as_string);
            var    expected_date = Convert.ToDateTime(expected_date_as_string, StringHelper.Culture());

            // Act
            cred_card2_in_out_record.Load(csv_line);

            // Assert
            Assert.AreEqual(expected_date, cred_card2_in_out_record.Date);
        }