public void RunMariaDBStoredProcedureTest() { var url = "Server=data.clmsuk.com;Port=3306;[email protected];Pwd=13fb4af722fc4421a72bcd1cada3b3d941aad1c7bd0c4ccd8835eea4929ed88d1@;Database=seaonline_core_mspanou;CharSet=utf8"; var myConfiguration = new Dictionary <string, string> { { "configuration:connectionStrings:add:Database:connectionString", url } }; var configuration = new ConfigurationBuilder() .AddInMemoryCollection(myConfiguration) .Build(); var parameters = new Dictionary <string, object> { { "Series", "A" } }; var result = new MariaDBManager(configuration) .RunStoredProcedure("GetNextTicketNumber", parameters, url); Assert.AreEqual(91, result?.Count); }
public Form1() { InitializeComponent(); _MariaDBManager = new MariaDBManager("test"); }