Update filled internship types to match moodle ones (#76)

Update labels to match

Fix typo and references to entities

Update filled internship types to match moodle ones
This commit is contained in:
Kacper Donat 2020-11-07 15:28:30 +01:00
parent 4fa04557fb
commit 3c446802be

View File

@ -114,18 +114,27 @@ namespace InternshipSystem.Repository
{ {
new InternshipType new InternshipType
{ {
Label = "Praktyka bezpłatna", Label = "Umowa o organizację praktyki",
LabelEng = "Free internship", LabelEng = "Internship agreement",
Description = "Praktyka bezpłatna",
DescriptionEng = "Free internship",
}, },
new InternshipType new InternshipType
{ {
Label = "Praktyka absolwencka", Label = "Umowa o praktykę absolwencką",
LabelEng = "Graduate internship", LabelEng = "Graduate internship agreement",
}, },
new InternshipType new InternshipType
{ {
Label = "Praktyka bezpłatna", Label = "Umowa o staż bezpłatny",
LabelEng = "Free apprenticeship", LabelEng = "Free apprenticeship agreement",
},
new InternshipType
{
Label = "Umowa o staż płatny",
LabelEng = "Paid apprenticeship agreement",
Description = "np. staż przemysłowy",
DescriptionEng = "e.g. industrial apprenticeship",
}, },
new InternshipType new InternshipType
{ {
@ -137,17 +146,17 @@ namespace InternshipSystem.Repository
new InternshipType new InternshipType
{ {
Label = "Umowa o pracę", Label = "Umowa o pracę",
LabelEng = "contract of employment", LabelEng = "Contract of employment",
}, },
new InternshipType new InternshipType
{ {
Label = "Umowa o dzieło", Label = "Umowa o dzieło (w tym B2B)",
LabelEng = "contract work", LabelEng = "Contract work (including B2B)",
}, },
new InternshipType new InternshipType
{ {
Label = "Umowa zlecenie", Label = "Umowa zlecenia (w tym B2B)",
LabelEng = "contract of mandate" LabelEng = "Contract of mandate (including B2B)",
}, },
}; };
await Context.InternshipTypes.AddRangeAsync(internshipTypes); await Context.InternshipTypes.AddRangeAsync(internshipTypes);
@ -203,7 +212,7 @@ namespace InternshipSystem.Repository
}, },
new EditionInternshipType new EditionInternshipType
{ {
InternshipType = Context.InternshipTypes.First(t => t.Label.Equals("Umowa zlecenie")) InternshipType = Context.InternshipTypes.First(t => t.Label.Equals("Umowa zlecenia (w tym B2B)"))
}, },
new EditionInternshipType new EditionInternshipType
{ {
@ -211,7 +220,7 @@ namespace InternshipSystem.Repository
}, },
new EditionInternshipType 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<Internship>(), Internships = new List<Internship>(),
@ -261,7 +270,7 @@ namespace InternshipSystem.Repository
}, },
new EditionInternshipType new EditionInternshipType
{ {
InternshipType = Context.InternshipTypes.First(t => t.Label.Equals("Umowa zlecenie")) InternshipType = Context.InternshipTypes.First(t => t.Label.Equals("Umowa zlecenia (w tym B2B)"))
}, },
new EditionInternshipType new EditionInternshipType
{ {
@ -269,7 +278,7 @@ namespace InternshipSystem.Repository
}, },
new EditionInternshipType 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<Internship>(), Internships = new List<Internship>(),
@ -338,7 +347,7 @@ namespace InternshipSystem.Repository
InternshipRegistration = new InternshipRegistration InternshipRegistration = new InternshipRegistration
{ {
Company = Context.Companies.First(c => c.Name.Equals("Asseco Poland")), 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), Start = new DateTime(2000, 7, 1),
End = new DateTime(2000, 8, 30), End = new DateTime(2000, 8, 30),
State = DocumentState.Submitted, State = DocumentState.Submitted,