From 1194173c4c45e031b46ff075d88a4aa4f8def341 Mon Sep 17 00:00:00 2001 From: Kacper Donat Date: Sat, 7 Nov 2020 15:23:23 +0100 Subject: [PATCH 1/3] Update filled internship types to match moodle ones --- .../DatabaseFiller.cs | 31 ++++++++++++------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/src/InternshipSystem.Repository/DatabaseFiller.cs b/src/InternshipSystem.Repository/DatabaseFiller.cs index 1bcdedc..72dda98 100644 --- a/src/InternshipSystem.Repository/DatabaseFiller.cs +++ b/src/InternshipSystem.Repository/DatabaseFiller.cs @@ -114,18 +114,27 @@ namespace InternshipSystem.Repository { new InternshipType { - Label = "Praktyka bezpłatna", - LabelEng = "Free internship", + Label = "Umowa o organizację praktyki", + LabelEng = "Internship agreement", + Description = "Praktyka bezpłatna", + DescriptionEng = "Free internship", }, new InternshipType { - Label = "Praktyka absolwencka", - LabelEng = "Graduate internship", + Label = "Umowa o praktykę absolwencką", + LabelEng = "Graduate internship agreement", }, new InternshipType { - Label = "Praktyka bezpłatna", - LabelEng = "Free apprenticeship", + Label = "Umowa o staż bezpłatny", + LabelEng = "Free apprenticeship agreement", + }, + new InternshipType + { + Label = "Umowa o staż zpłatny", + LabelEng = "Paid apprenticeship agreement", + Description = "np. staż przemysłowy", + DescriptionEng = "e.g. industrial apprenticeship", }, new InternshipType { @@ -137,17 +146,17 @@ namespace InternshipSystem.Repository new InternshipType { Label = "Umowa o pracę", - LabelEng = "contract of employment", + LabelEng = "Contract of employment", }, new InternshipType { - Label = "Umowa o dzieło", - LabelEng = "contract work", + Label = "Umowa o dzieło (w tym B2B)", + LabelEng = "Contract work (including B2B)", }, new InternshipType { - Label = "Umowa zlecenie", - LabelEng = "contract of mandate" + Label = "Umowa zlecenia (w tym B2B)", + LabelEng = "Contract of mandate (including B2B)", }, }; await Context.InternshipTypes.AddRangeAsync(internshipTypes); -- 2.45.2 From f3740ee414caa67aa51744c684ea819dc5d3482b Mon Sep 17 00:00:00 2001 From: Kacper Donat Date: Sat, 7 Nov 2020 15:26:40 +0100 Subject: [PATCH 2/3] Fix typo and references to entities --- src/InternshipSystem.Repository/DatabaseFiller.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/InternshipSystem.Repository/DatabaseFiller.cs b/src/InternshipSystem.Repository/DatabaseFiller.cs index 72dda98..4150806 100644 --- a/src/InternshipSystem.Repository/DatabaseFiller.cs +++ b/src/InternshipSystem.Repository/DatabaseFiller.cs @@ -131,7 +131,7 @@ namespace InternshipSystem.Repository }, new InternshipType { - Label = "Umowa o staż zpłatny", + Label = "Umowa o staż płatny", LabelEng = "Paid apprenticeship agreement", Description = "np. staż przemysłowy", DescriptionEng = "e.g. industrial apprenticeship", @@ -212,7 +212,7 @@ namespace InternshipSystem.Repository }, new EditionInternshipType { - InternshipType = Context.InternshipTypes.First(t => t.Label.Equals("Umowa zlecenie")) + InternshipType = Context.InternshipTypes.First(t => t.Label.Equals("Umowa zlecenia")) }, new EditionInternshipType { @@ -220,7 +220,7 @@ namespace InternshipSystem.Repository }, new EditionInternshipType { - InternshipType = Context.InternshipTypes.First(t => t.Label.Equals("Praktyka bezpłatna")) + InternshipType = Context.InternshipTypes.First(t => t.Label.Equals("Umowa o organizację praktyki")) } }, Internships = new List(), @@ -270,7 +270,7 @@ namespace InternshipSystem.Repository }, new EditionInternshipType { - InternshipType = Context.InternshipTypes.First(t => t.Label.Equals("Umowa zlecenie")) + InternshipType = Context.InternshipTypes.First(t => t.Label.Equals("Umowa zlecenia")) }, new EditionInternshipType { @@ -278,7 +278,7 @@ namespace InternshipSystem.Repository }, new EditionInternshipType { - InternshipType = Context.InternshipTypes.First(t => t.Label.Equals("Praktyka bezpłatna")) + InternshipType = Context.InternshipTypes.First(t => t.Label.Equals("Umowa o organizację praktyki")) } }, Internships = new List(), -- 2.45.2 From 74b003f0153e4f463e296e3d0fdeb111d816c94b Mon Sep 17 00:00:00 2001 From: Kacper Donat Date: Sat, 7 Nov 2020 15:28:01 +0100 Subject: [PATCH 3/3] Update labels to match --- src/InternshipSystem.Repository/DatabaseFiller.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/InternshipSystem.Repository/DatabaseFiller.cs b/src/InternshipSystem.Repository/DatabaseFiller.cs index 4150806..520c960 100644 --- a/src/InternshipSystem.Repository/DatabaseFiller.cs +++ b/src/InternshipSystem.Repository/DatabaseFiller.cs @@ -212,7 +212,7 @@ namespace InternshipSystem.Repository }, new EditionInternshipType { - InternshipType = Context.InternshipTypes.First(t => t.Label.Equals("Umowa zlecenia")) + InternshipType = Context.InternshipTypes.First(t => t.Label.Equals("Umowa zlecenia (w tym B2B)")) }, new EditionInternshipType { @@ -270,7 +270,7 @@ namespace InternshipSystem.Repository }, new EditionInternshipType { - InternshipType = Context.InternshipTypes.First(t => t.Label.Equals("Umowa zlecenia")) + InternshipType = Context.InternshipTypes.First(t => t.Label.Equals("Umowa zlecenia (w tym B2B)")) }, new EditionInternshipType { @@ -347,7 +347,7 @@ namespace InternshipSystem.Repository InternshipRegistration = new InternshipRegistration { Company = Context.Companies.First(c => c.Name.Equals("Asseco Poland")), - Type = Context.InternshipTypes.First(t => t.Label.Equals("Umowa zlecenie")), + Type = Context.InternshipTypes.First(t => t.Label.Equals("Umowa zlecenia (w tym B2B)")), Start = new DateTime(2000, 7, 1), End = new DateTime(2000, 8, 30), State = DocumentState.Submitted, -- 2.45.2