fix internship registration (#73)
fix internship registration Co-authored-by: MaxchilKH <m.w.bohdanowicz@gmail.com>
This commit is contained in:
parent
3b60331091
commit
33149c255b
@ -144,7 +144,9 @@ namespace InternshipSystem.Api.UseCases
|
|||||||
|
|
||||||
private void UpdateMentor(UpdateMentor mentorUpdate)
|
private void UpdateMentor(UpdateMentor mentorUpdate)
|
||||||
{
|
{
|
||||||
subjectRegistration.Mentor.UpdateInformation(mentorUpdate.FirstName, mentorUpdate.LastName, mentorUpdate.Email, mentorUpdate.PhoneNumber);
|
var mentor = subjectRegistration.Mentor ?? new Mentor();
|
||||||
|
|
||||||
|
mentor.UpdateInformation(mentorUpdate.FirstName, mentorUpdate.LastName, mentorUpdate.Email, mentorUpdate.PhoneNumber);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -215,7 +215,65 @@ namespace InternshipSystem.Repository
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
Internships = new List<Internship>(),
|
Internships = new List<Internship>(),
|
||||||
}
|
},
|
||||||
|
new Edition
|
||||||
|
{
|
||||||
|
Id = Guid.Parse("bd0da085-8e51-400d-9630-bdab3f9f6cc8"),
|
||||||
|
EditionStart = new DateTime(2019, 5, 10),
|
||||||
|
EditionFinish = new DateTime(2019, 12, 10),
|
||||||
|
ReportingStart = new DateTime(2019, 9, 30),
|
||||||
|
AvailableSubjects = new List<EditionSubject>
|
||||||
|
{
|
||||||
|
new EditionSubject
|
||||||
|
{
|
||||||
|
Subject = new InternshipSubject
|
||||||
|
{
|
||||||
|
Description = "Modelowanie baz danych",
|
||||||
|
DescriptionEng = "Database modeling",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
new EditionSubject
|
||||||
|
{
|
||||||
|
Subject = new InternshipSubject
|
||||||
|
{
|
||||||
|
Description = "Oprogramowywanie kart graficznych",
|
||||||
|
DescriptionEng = "Graphics card software",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
new EditionSubject
|
||||||
|
{
|
||||||
|
Subject = new InternshipSubject
|
||||||
|
{
|
||||||
|
Description = "Projektowanie UI",
|
||||||
|
DescriptionEng = "UI design",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
Course = new Course
|
||||||
|
{
|
||||||
|
Name = "Inżynieria Biomedyczna",
|
||||||
|
},
|
||||||
|
AvailableInternshipTypes = new List<EditionInternshipType>
|
||||||
|
{
|
||||||
|
new EditionInternshipType
|
||||||
|
{
|
||||||
|
InternshipType = Context.InternshipTypes.First(t => t.Label.Equals("Umowa o pracę"))
|
||||||
|
},
|
||||||
|
new EditionInternshipType
|
||||||
|
{
|
||||||
|
InternshipType = Context.InternshipTypes.First(t => t.Label.Equals("Umowa zlecenie"))
|
||||||
|
},
|
||||||
|
new EditionInternshipType
|
||||||
|
{
|
||||||
|
InternshipType = Context.InternshipTypes.First(t => t.Label.Equals("Umowa o dzieło"))
|
||||||
|
},
|
||||||
|
new EditionInternshipType
|
||||||
|
{
|
||||||
|
InternshipType = Context.InternshipTypes.First(t => t.Label.Equals("Praktyka bezpłatna"))
|
||||||
|
}
|
||||||
|
},
|
||||||
|
Internships = new List<Internship>(),
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var edition = editions.First();
|
var edition = editions.First();
|
||||||
|
Loading…
Reference in New Issue
Block a user