public void Tables_WithValues_ReturnsSpecifiedValue(string[] tables, int count)
        {
            SqliteModel model = new SqliteModel(null, 0, tables, 0, null);

            Assert.Equal(count, model.Tables.Count());
            Assert.Equal(tables[0], model.Tables.First());
        }
        public void Tables_WithoutValues_ReturnsSpeifiedValue()
        {
            string[] tables = new string[0];

            SqliteModel model = new SqliteModel(null, 0, tables, 0, null);

            Assert.Equal(0, model.Tables.Count());
        }
        public void Get_ReturnsAllMonitoringItems()
        {
            SqliteModel[] monitoringArray = new SqliteModel[] { _testSqliteModel };

            Mock<IDataManager<SqliteModel>> mockDataManager = new Mock<IDataManager<SqliteModel>>();
            mockDataManager.Setup(m => m.GetAll()).Returns(monitoringArray);

            MonitoringController controller = new MonitoringController(mockDataManager.Object);

            IEnumerable<SqliteModel> models = controller.Get();

            Assert.Equal(monitoringArray.Count(), models.Count());
            Assert.Equal(VERSION, models.First().SqliteVersion);
        }
        public void SqliteVersion_ReturnsSpecifiedValue(string version)
        {
            SqliteModel model = new SqliteModel(version, 0, new string[0], 0, null);

            Assert.Equal(version, model.SqliteVersion);
        }
        public void TotalChanges_ReturnsSpecifiedValue(long changes)
        {
            SqliteModel model = new SqliteModel(null, 0, new string[0], changes, null);

            Assert.Equal(changes, model.TotalChanges);
        }
        public void QueryResponseTime_ReturnsSpecifiedValue(long time)
        {
            SqliteModel model = new SqliteModel(null, time, new string[0], 0, null);

            Assert.Equal(time, model.QueryResponseTime);
        }
        public void Result_ReturnsSpecifiedValue(string result)
        {
            SqliteModel model = new SqliteModel(null, 0, new string[0], 0, result);

            Assert.Equal(result, model.Result);
        }