public void CheckIfFlashcardIdIsUniquePostgreSQLTestA(string stringId, bool expected)
        {
            ResetTestDatabasePostgreSQLv2.Reset();

            CheckIfFlashcardIdIsUniquePostgreSQL _processor = new CheckIfFlashcardIdIsUniquePostgreSQL();

            Assert.Equal(expected, _processor.Check(Guid.Parse(stringId)));
        }
        public void LoadFiveFlashcardsForPracticePostgreSQLTestA()
        {
            ResetTestDatabasePostgreSQLv2.Reset();

            ILoadFiveFlashcardsForPractice _db = new LoadFiveFlashcardsForPracticePostgreSQl();

            var output = _db.Load(Guid.Parse("f34b0017-65e3-4f37-8d1b-4ab096f64046"));

            Assert.NotNull(output.FirstOrDefault(e => e.Id == Guid.Parse("32aee329-6675-4ae8-898a-95bb94ea0143") && e.PracticeDirection == PracticeDirection.FromForeignToNative));

            Assert.Null(output.FirstOrDefault(e => e.Id == Guid.Parse("073e83a0-57ff-43b8-a2c7-56a54b5ab22c") && e.PracticeDirection == PracticeDirection.FromNativeToForeign));
        }
        public void LoadFiveFlashcardsForLearnPostgreSQLTestA()
        {
            ResetTestDatabasePostgreSQLv2.Reset();

            ILoadFiveFlashcardsForLearn _db = new LoadFiveFlashcardsForLearnPostgreSQL();

            var items = _db.Load(Guid.Parse("f34b0017-65e3-4f37-8d1b-4ab096f64046"));

            Assert.NotNull(items.FirstOrDefault(e => e.Id == Guid.Parse("073e83a0-57ff-43b8-a2c7-56a54b5ab22c") && e.PracticeDirection == PracticeDirection.FromNativeToForeign));

            Assert.Null(items.FirstOrDefault(e => e.Id == Guid.Parse("ec604aff-6706-4c05-8c58-bd72115e3f60") && e.PracticeDirection == PracticeDirection.FromNativeToForeign));
        }