public void TestGetSQLDBConfigurationFromJSONFile()
        {
            ISQLDBConfigurationProvider sQLDBConfigurationProvider = _erector.Container.Resolve <ISQLDBConfigurationProvider>();
            ISQLDBConfiguration         sQLDBConfiguration         = sQLDBConfigurationProvider.GetSQLDBConfigurationFromJSONFile();

            Assert.IsNotNull(sQLDBConfiguration);
            Assert.IsFalse(String.IsNullOrEmpty(sQLDBConfiguration.ConnectionString));
        }
        public void TestGetSQLDBConfigurationFromJSONString()
        {
            ISQLDBConfigurationProvider sQLDBConfigurationProvider = _erector.Container.Resolve <ISQLDBConfigurationProvider>();
            string jsonConfig = "{'ConnectionString': 'Server=JESUS;Database=ChatMessageDB;Trusted_Connection=True;'}";
            ISQLDBConfiguration sQLDBConfiguration = sQLDBConfigurationProvider.GetSQLDBConfigurationFromJSONString(jsonConfig);

            Assert.IsNotNull(sQLDBConfiguration);
            Assert.IsFalse(String.IsNullOrEmpty(sQLDBConfiguration.ConnectionString));
        }
 public SQLDataBaseBoardChatMessage(ISQLDBConfigurationProvider sQLDBConfigurationProvider, IChatMessageEnvelopeFactory chatMessageEnvelopeFactory)
     : base()
 {
     _sQLDBConfigurationProvider = sQLDBConfigurationProvider;
     _chatMessageEnvelopeFactory = chatMessageEnvelopeFactory;
 }