public SqlDumpProcessingPipeline(string outputFile) { _sqlGen = new SqlMapper(); _writer = new StreamWriter(outputFile, false); _writers = new InMemoryDatabaseOf<Writer>(); _publications = new InMemoryDatabaseOf<Publication>(); }
public void SetUp() { var entries = new List<Entry> { new Entry { Id = 1, PublicationId = 1, Body = "Body 1", Writer = new Writer { Email = "*****@*****.**", Name = "Writer1", }, Uri = "http://uri1.com", Timestamp = new DateTime(2014, 1, 2, 2, 4, 00), Title = "Title 1" }, new Entry { Id = 2, PublicationId = 1, Body = "Body 2", Writer = new Writer { Email = "*****@*****.**", Name = "Writer2", }, Uri = "http://uri2.com", Timestamp = new DateTime(2012, 1, 2, 2, 4, 00), Title = "Title 2" }, }; var sqlMapper = new SqlMapper(); _sqlLines += sqlMapper.GenerateSqlFor(entries[0]); _sqlLines += sqlMapper.GenerateSqlFor(entries[0]); }