Update filled internship types to match moodle ones ()

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
{
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ż pł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);
@ -203,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 (w tym B2B)"))
},
new EditionInternshipType
{
@ -211,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<Internship>(),
@ -261,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 (w tym B2B)"))
},
new EditionInternshipType
{
@ -269,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<Internship>(),
@ -338,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,