public async Task TestIfCharacteristicsExistsReturnsFalse()
        {
            var context = PCHUBDbContextInMemoryInitializer.InitializeContext();

            var characteristicsService = new Areas.Administration.Services.AdminCharacteristicsServices(context);

            Assert.False(await characteristicsService.CharacteristicsExistsAsync("Laptops"));
        }
        public async Task TestIfCharacteristicsExistsWorksAccordingly()
        {
            var context = PCHUBDbContextInMemoryInitializer.InitializeContext();

            var characteristicsService = new Areas.Administration.Services.AdminCharacteristicsServices(context);



            var categoryForm = new InsertCharacteristicsCategoryViewModel();

            categoryForm.CategoryName = "Laptops";

            await characteristicsService.CreateCharacteristicsCategoryAsync(categoryForm);

            var form = new InsertCharacteristicsViewModel();

            form.BasicCharacteristics.AddRange(new List <string>
            {
                "Acer",
                "Lenovo",
                "Dell",
                "Ombre",
            });

            form.Category = "Laptops";

            form.FullCharacteristics.AddRange(new List <string>
            {
                "Acer",
                "Lenovo",
                "Dell",
                "Ombre",
            });

            await characteristicsService.CreateCharacteristicsAsync(form);


            Assert.True(await characteristicsService.CharacteristicsExistsAsync("Laptops"));
        }