Exemple #1
0
        public void BatchControl_TestRowCreation()
        {
            var _suts = new List <BatchControl>();
            var _suti = new BatchControl
            {
                CompanyIdentification = "9876543210",
                OriginatingDfi        = "99889988",
                TotalCreditAmount     = 9223372036854775807,
                TotalDebitAmount      = 9223372036854775807
            };

            _suts.Add(_suti);

            var _engine   = new FileHelpers.FileHelperEngine <BatchControl>();
            var _test     = _engine.WriteString(_suts);
            var _expected = "820000000000000000009223372036859223372036859876543210                         998899880000000\r\n";

            Assert.Equal(_expected, _test);
        }
Exemple #2
0
 public BatchControlTests()
 {
     _sut = new BatchControl();
 }