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(); }
public void insert_with_creating_table() { ISeedRepository seedRepository = new PostgreSqlRepository(_connectionString); seedRepository.AddToSeedsHistory("Test", "1.0"); seedRepository.IsExistsSeedsHistory().Should().BeTrue(); seedRepository.DeleteSeedsHistory(); }