Example #1
0
 public GeneralLedgerEntryTests(ITestOutputHelper output)
 {
     _writer  = new TestSpecificationTextWriter(new TestOutputHelperTextWriter(output));
     _facts   = new FactRecorder();
     _handler = new GeneralLedgerEntryHandlers(new GeneralLedgerTestRepository(_facts),
                                               new GeneralLedgerEntryTestRepository(_facts),
                                               new ChartOfAccountsTestRepository(_facts));
 }
        public void WriteEventCentricTestSpecificationResultsInExpectedOutput(
            EventCentricTestSpecification specification, string result)
        {
            using (var writer = new StringWriter())
            {
                var sut = new TestSpecificationTextWriter(writer);

                sut.Write(specification);

                Assert.That(writer.ToString(), Is.EqualTo(result));
            }
        }
 public GeneralLedgerEntryTests(ITestOutputHelper output)
 {
     _writer = new TestSpecificationTextWriter(new TestOutputHelperTextWriter(output));
     _facts  = new FactRecorder();
 }