public void EnsureSpecialisatiesExist_Should_Not_Create_A_Duplicate_Entry()
        {
            // Arrange
            using var context = new CompetentieAppFrontendContext(_options);
            var repository = new SpecialisatieRepository(context);

            // Act
            var result = repository.EnsureSpecialisatiesExist(new List <Specialisatie>
            {
                new Specialisatie
                {
                    Naam = "Software engineering"
                }
            });

            // Assert
            Assert.IsTrue(result.Any(id => id == 3));
        }
        public void EnsureSpecialisatiesExist_Should_Create_New_Entries_If_Not_Exist()
        {
            // Arrange
            using var context = new CompetentieAppFrontendContext(_options);
            var repository = new SpecialisatieRepository(context);

            // Act
            var result = repository.EnsureSpecialisatiesExist(new List <Specialisatie>
            {
                new Specialisatie
                {
                    Naam = "Kaas snijden"
                }
            });

            // Assert
            Assert.IsTrue(result.Any(id => id == 5));
        }
        public void EnsureSpecialisatiesExist_Should_Return_Typeof_IEnumerable_Of_Long()
        {
            // Arrange
            using var context = new CompetentieAppFrontendContext(_options);
            var repository = new SpecialisatieRepository(context);

            // Act
            var result = repository.EnsureSpecialisatiesExist(new List <Specialisatie>
            {
                new Specialisatie
                {
                    Naam = "Software engineering"
                }
            });

            // Assert
            Assert.IsInstanceOfType(result, typeof(IEnumerable <long>));
        }