Exemplo n.º 1
0
        public void get_all_seeds()
        {
            ISeedRepository seedRepository = new PostgreSqlRepository(_connectionString);

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

            seedRepository.GetSeedsHistory().Should().HaveCount(2);
            seedRepository.DeleteSeedsHistory();
        }
Exemplo n.º 2
0
        public void insert_with_creating_table()
        {
            ISeedRepository seedRepository = new PostgreSqlRepository(_connectionString);

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

            seedRepository.IsExistsSeedsHistory().Should().BeTrue();
            seedRepository.DeleteSeedsHistory();
        }