Exemple #1
0
        public void seeds_history_table_is_exists()
        {
            ISeedRepository seedRepository = new SqLiteRepository(_connectionString);

            seedRepository.CreateSeedsHistory();

            seedRepository.IsExistsSeedsHistory().Should().BeTrue();
            seedRepository.DeleteSeedsHistory();
        }
Exemple #2
0
        public void insert_with_creating_table()
        {
            ISeedRepository seedRepository = new SqLiteRepository(_connectionString);

            seedRepository.AddToSeedsHistory("Test", "1.0");

            seedRepository.IsExistsSeedsHistory().Should().BeTrue();
            seedRepository.DeleteSeedsHistory();
        }
Exemple #3
0
        public void get_all_seeds()
        {
            ISeedRepository seedRepository = new SqLiteRepository(_connectionString);

            seedRepository.AddToSeedsHistory("Test1", "1.0");
            seedRepository.AddToSeedsHistory("Test2", "1.0");

            seedRepository.GetSeedsHistory().Should().HaveCount(2);
            seedRepository.DeleteSeedsHistory();
        }