Exemple #1
0
        public static ICommander <T> UseMySql <T>(string settingsFile = "Syrx.MySql.Integration.Tests.json")
        {
            var settings  = JsonConvert.DeserializeObject <DatabaseCommanderSettings>(File.ReadAllText(settingsFile));
            var reader    = new DatabaseCommandReader(settings);
            var connector = new MySqlDatabaseConnector(settings);

            return(new DatabaseCommander <T>(reader, connector));
        }
Exemple #2
0
        public void Successfully()
        {
            var result = new DatabaseCommandReader(SettingsDouble.GetSettings());

            NotNull(result);
        }