public void SenderToHTML(string connectionString) { IReceive status = null; ISenderToOutput sender = null; IDataToSent data = null; $"Assume Sql Server instance {connectionString} exists , if not see docker folder".w(() => { }); $"When I create the ReceiverDBServer ".w(() => status = new ReceiveMetadataFromDatabaseSql(connectionString)); $"and receive data".w(async() => { data = await status.TransformData(null); }); $"the data should have a tables, columns, relations,keys,properties".w(() => { data.DataToBeSentFurther.Count.Should().Be(5); }); $"and now export to SenderToDot".w(async() => { sender = new SenderDBDiagramHTMLDocument(""); data = await sender.TransformData(data); }); $"should be some content".w(() => { sender.OutputString.Should().NotBeNull(); sender.OutputString.Rows.Count.Should().Be(1); //File.WriteAllText(@"C:\Users\Surface1\Desktop\viz.html", sender.OutputContents.First().Value); //Process.Start("notepad.exe","a.txt"); }); }
public void TestReceiverDBServer(string connectionString) { IReceive status = null; IDataToSent data = null; $"Assume Sql Server instance {connectionString} exists , if not see docker folder".w(() => { }); $"When I create the ReceiverDBServer ".w(() => status = new ReceiveMetadataFromDatabaseSql(connectionString)); $"and receive data".w(async() => { data = await status.TransformData(null); }); $"the data should have tables, columns, relations,keys,properties".w(() => { data.DataToBeSentFurther.Count.Should().Be(5); }); }