From 58271df9494735e4892de3a0c2fa9db7f09bc54e Mon Sep 17 00:00:00 2001 From: shept Date: Wed, 16 Apr 2025 17:31:27 +0500 Subject: [PATCH] moved Question Variants to separate namespace --- .../Models/{ => QuestionVariants}/MultipleAnswerQuestion.cs | 2 +- .../Models/{ => QuestionVariants}/SingleAnswerQuestion.cs | 2 +- SurveyLib.Core/Models/QuestionVariants/TextQuestion.cs | 5 +++++ SurveyLib.Core/Models/TextQuestion.cs | 5 ----- SurveyLib.Infrastructure.EFCore/Data/SurveyDbContext.cs | 1 + 5 files changed, 8 insertions(+), 7 deletions(-) rename SurveyLib.Core/Models/{ => QuestionVariants}/MultipleAnswerQuestion.cs (70%) rename SurveyLib.Core/Models/{ => QuestionVariants}/SingleAnswerQuestion.cs (70%) create mode 100644 SurveyLib.Core/Models/QuestionVariants/TextQuestion.cs delete mode 100644 SurveyLib.Core/Models/TextQuestion.cs diff --git a/SurveyLib.Core/Models/MultipleAnswerQuestion.cs b/SurveyLib.Core/Models/QuestionVariants/MultipleAnswerQuestion.cs similarity index 70% rename from SurveyLib.Core/Models/MultipleAnswerQuestion.cs rename to SurveyLib.Core/Models/QuestionVariants/MultipleAnswerQuestion.cs index ec4349c..d2eb5b0 100644 --- a/SurveyLib.Core/Models/MultipleAnswerQuestion.cs +++ b/SurveyLib.Core/Models/QuestionVariants/MultipleAnswerQuestion.cs @@ -1,4 +1,4 @@ -namespace SurveyLib.Core.Models; +namespace SurveyLib.Core.Models.QuestionVariants; public class MultipleAnswerQuestion : QuestionBase { diff --git a/SurveyLib.Core/Models/SingleAnswerQuestion.cs b/SurveyLib.Core/Models/QuestionVariants/SingleAnswerQuestion.cs similarity index 70% rename from SurveyLib.Core/Models/SingleAnswerQuestion.cs rename to SurveyLib.Core/Models/QuestionVariants/SingleAnswerQuestion.cs index d99abe9..de1bb01 100644 --- a/SurveyLib.Core/Models/SingleAnswerQuestion.cs +++ b/SurveyLib.Core/Models/QuestionVariants/SingleAnswerQuestion.cs @@ -1,4 +1,4 @@ -namespace SurveyLib.Core.Models; +namespace SurveyLib.Core.Models.QuestionVariants; public class SingleAnswerQuestion : QuestionBase { diff --git a/SurveyLib.Core/Models/QuestionVariants/TextQuestion.cs b/SurveyLib.Core/Models/QuestionVariants/TextQuestion.cs new file mode 100644 index 0000000..f8912cf --- /dev/null +++ b/SurveyLib.Core/Models/QuestionVariants/TextQuestion.cs @@ -0,0 +1,5 @@ +namespace SurveyLib.Core.Models.QuestionVariants; + +public class TextQuestion : QuestionBase +{ +} \ No newline at end of file diff --git a/SurveyLib.Core/Models/TextQuestion.cs b/SurveyLib.Core/Models/TextQuestion.cs deleted file mode 100644 index ad05932..0000000 --- a/SurveyLib.Core/Models/TextQuestion.cs +++ /dev/null @@ -1,5 +0,0 @@ -namespace SurveyLib.Core.Models; - -public class TextQuestion : QuestionBase -{ -} \ No newline at end of file diff --git a/SurveyLib.Infrastructure.EFCore/Data/SurveyDbContext.cs b/SurveyLib.Infrastructure.EFCore/Data/SurveyDbContext.cs index f4023de..d77fb6d 100644 --- a/SurveyLib.Infrastructure.EFCore/Data/SurveyDbContext.cs +++ b/SurveyLib.Infrastructure.EFCore/Data/SurveyDbContext.cs @@ -1,5 +1,6 @@ using Microsoft.EntityFrameworkCore; using SurveyLib.Core.Models; +using SurveyLib.Core.Models.QuestionVariants; namespace SurveyLib.Infrastructure.EFCore.Data;