public Vacancy(string name, Company company, IWorkExperience workExperience, IEducation education) { _name = name; _company = company; _workExperience = workExperience; _education = education; }
public Applicant(TypeWorker worker) { _surname = NamesApplicants.GetSurname(); _name = NamesApplicants.GetName(); _patronymic = NamesApplicants.GetPatronymic(); _education = new EducationForApplicant(worker); _workExperience = new WorkExperienceForApplicant(worker); }
public Applicant(string surname, string name, string patronymic, IEducation education, IWorkExperience workExperience) { _surname = surname; _name = name; _patronymic = patronymic; _education = education; _workExperience = workExperience; }
public EducationService(IEducation education, IProfession profession, IEducationProfession educationProfession, IEducationFormat educationFormat, IEducationFormatAvailable educationFormatAvailable, IEducationCredential educationCredential) { _education = education; _profession = profession; _educationProfession = educationProfession; _educationFormat = educationFormat; _educationFormatAvailable = educationFormatAvailable; _educationCredential = educationCredential; }
public void EducationInitialize() { _educationRepository = new EducationRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _collegeEducationRepository = new CollegeEducationRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _educationFormatAvailableRepository = new EducationFormatAvialableRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _educationTypesAvailableRepository = new EducationTypesAvailableRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _educationDetailPageRepository = new EducationDetailPageRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _newsRepository = new NewsRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _organizationRepository = new OrganizationRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _educationBL = new EducationImpl(_educationRepository, _collegeEducationRepository, _educationFormatAvailableRepository, _educationTypesAvailableRepository, _educationDetailPageRepository, _newsRepository, _organizationRepository); }
static void Main(string[] args) { Console.WriteLine("Hello"); IEducation education = new NackademinEducation(); EducationLibrary.EducationBuilder builder = new NackademinBuilder(education); EducationDirector director = new NackademinDirector(); IEducation result = director.Build(builder); Console.ReadLine(); }
/// <summary> /// Constructor of the EducationController. /// </summary> /// <param name="logger"></param> /// <param name="previewService"></param> /// <param name="educationService"></param> /// <param name="lecturePreviewService"></param> /// <param name="seminarPreviewService"></param> public EducationController( ILogger logger, IService previewService, IEducation educationService, ILecturePreview lecturePreviewService, ISeminarPreview seminarPreviewService) { this._logger = logger; this._previewService = previewService; this._educationService = educationService; this._lecturePreviewService = lecturePreviewService; this._seminarPreviewService = seminarPreviewService; }
public void TestJensenBuilder() { //ARRANGE IEducation education = new JensenEducation(); EducationLibrary.EducationBuilder builder = new JensenBuilder(education); EducationDirector director = new JensenDirector(); const string expected = "Jensen Education AB"; //ACT IEducation result = director.Build(builder); //ASSERT Assert.AreEqual(expected, result.Education); }
public void TestNackademinBuilder() { //ARRANGE IEducation education = new NackademinEducation(); EducationLibrary.EducationBuilder builder = new NackademinBuilder(education); EducationDirector director = new NackademinDirector(); const string expectedEducation = "Nackademin AB"; //ACT IEducation result = director.Build(builder); //ASSERT Assert.AreEqual(result.Education, expectedEducation); }
public HomeController(IEmployee employee , IDepartment department , IStringLocalizer <HomeController> localizer , IStringLocalizer <SharedResources> sharedLocalizer , IHttpContextAccessor httpContextAccessor , IEducation education , IMission mission ) { _employee = employee; _department = department; _localizer = localizer; _sharedLocalizer = sharedLocalizer; _httpContextAccessor = httpContextAccessor; _education = education; _mission = mission; }
public void Test_Kth_Education() { //Arrange string expectedEducationName = "KTH"; string expectedTeacher = "Ellie"; string expectedStudents = "Samir"; string expectedFeedBack = "Perfect"; AbstractEducation education = new KthEducation("Ellie", "Samir", "Perfect"); EducationBuilder builder = new KthBuilder(education); EducationDirector director = new KthDirector(); //Act IEducation actual = director.Build(builder); //Assert Assert.AreEqual(expectedEducationName, actual.EducationName); }
public void Test_Nackademin_Education() { //Arrange string expectedEducationName = "Nackademin"; string expectedTeacher = "Ellie"; string expectedStudents = "Samir"; string expectedFeedBack = "SiSåDär"; AbstractEducation education = new NackademinEducation("Ellie", "Samir", "SiSåDär"); EducationBuilder builder = new NackademinBuilder(education); NackademinDirector director = new NackademinDirector(); //Act IEducation actual = director.Build(builder); //Assert Assert.AreEqual(expectedEducationName, actual.EducationName); Assert.AreEqual(expectedTeacher, actual.TeacherName); Assert.AreEqual(expectedStudents, actual.Student); Assert.AreEqual(expectedFeedBack, actual.Feedback); }
public void Test_Jensen_Education() { //Arrange //JensenEducation expected= new JensenEducation(); //expected.EducationName = "Jensen"; string expectedEducationName = "Jensen"; string expectedTeacher = "Ellie"; string expectedStudents = "Samir"; string expectedFeedBack = "Perfekt"; AbstractEducation education = new JensenEducation("Ellie", "Samir", "Perfekt"); EducationBuilder builder = new JensenBuilder(education); EducationDirector director = new JensenDirector(); //Act IEducation actual = director.Build(builder); //Assert Assert.AreEqual(expectedEducationName, actual.EducationName); Assert.AreEqual(expectedTeacher, actual.TeacherName); Assert.AreEqual(expectedStudents, actual.Student); Assert.AreEqual(expectedFeedBack, actual.Feedback); }
public Vacancy(TypeWorker worker) { switch (worker) { case TypeWorker.FactoryWorker: _company = new IndustrialCompany(); break; case TypeWorker.Builder: _company = new ConstructionCompany(); break; case TypeWorker.Trader: _company = new TradeСompany(); break; case TypeWorker.Scientist: _company = new ScientificCompany(); break; } _name = NamesVacancies.Get(_company); _workExperience = new WorkExperienceForVacancy(); _education = new EducationForVacancy(worker); }
public void TestIfNackademinGetsCorrectValues() { //ARRANGE IEducation education = new NackademinEducation(); EducationLibrary.EducationBuilder builder = new NackademinBuilder(education); EducationDirector director = new NackademinDirector(); const string expectedEducation = "Nackademin AB"; const string expectedTeacher = "Mattias Asplund"; const string expectedFeedback = "Very good"; const string expectedStudents = "Erik, Sven"; //ACT IEducation result = director.Build(builder); //ASSERT Assert.AreEqual(result.Education, expectedEducation); Assert.AreEqual(result.Students, expectedStudents); Assert.AreEqual(result.Teacher, expectedTeacher); Assert.AreEqual(result.StudentFeedback, expectedFeedback); }
/// <summary> /// Gets the <see cref="IEducation"/> at time <see cref="dt"/> /// </summary> /// <param name="dt">Null for the current time</param> /// <returns></returns> public override IEducation GetEducationAt(DateTime? dt) { if(_edu == null) _edu = new NorthAmericanEdu(this); if (dt == null) return _edu; if(_edu.EduLevel == OccidentalEdu.None) return _edu; var hsGradDt = _edu.HighSchool == null ? dt.Value.AddDays(-1) : _edu.HighSchool.Item2; if (hsGradDt < dt) { return new NorthAmericanEdu(new Tuple<IHighSchool, DateTime?>(_edu?.HighSchool?.Item1, null)); } var univGradDt = _edu.College == null ? dt.Value.AddDays(-1) : _edu.College.Item2; if (univGradDt < dt) { return new NorthAmericanEdu(new Tuple<IUniversity, DateTime?>(_edu?.College?.Item1, null), new Tuple<IHighSchool, DateTime?>(_edu?.HighSchool?.Item1, _edu?.HighSchool?.Item2)); } return _edu; }
public EducationService(IEmployee employee, IEducation education) { _employee = employee; _education = education; }
public JensenBuilder(IEducation education) { educationInProgress = education; }
public EducationController(IEducation education) { _education = education; }
public EducationsController(IEducation ieducation) { _ieducation = ieducation; }
public NackademinBuilder(IEducation education) { educationInProgress = education; }
/// <summary> /// Initializes a new instance of the <see cref="Education_InfoViewModel" /> class. /// </summary> /// <param name="dialogService">The Dialog Service.</param> /// <param name="navigationService">The Navigation Service.</param> /// <param name="education">The Education.</param> public Education_InfoViewModel(IDialogService dialogService, INavigationService navigationService, IEducation education) { _dialogService = dialogService; _navigationService = navigationService; _education = education; }
public static SessionLoginResult Login(string userName, string userPassword, IEmployee employeeService, IDepartment departmentService, IEducation educationService, IMission missionService) { Employee IsEmployeeExist = new EmployeeService(employeeService, departmentService).CheckUsernameAndPassword( userName, userPassword); if (IsEmployeeExist != null) { Employee existEmployee = IsEmployeeExist; SessionEmployee currentEmployee = new SessionEmployee(); currentEmployee.EmployeeId = existEmployee.EmployeeId; currentEmployee.EmployeeName = existEmployee.EmployeeName; currentEmployee.EmployeeSurname = existEmployee.EmployeeSurname; currentEmployee.EmployeeCode = existEmployee.EmployeeCode; currentEmployee.EmployeeEmail = existEmployee.EmployeeEmail; currentEmployee.EmployeeUsername = existEmployee.EmployeeUsername; currentEmployee.EmployeeTitle = existEmployee.EmployeeTitle; currentEmployee.EmployeeBirthdate = existEmployee.EmployeeBirthdate; currentEmployee.EmployeeTc = existEmployee.EmployeeTc; currentEmployee.EmployeeManager = existEmployee.EmployeeManager; currentEmployee.Departments = new DepartmentService(employeeService, departmentService).GetDepartmentByEmployeeId(existEmployee.EmployeeId); currentEmployee.Educations = new EducationService(employeeService, educationService).GetEducationByEmployeeId(existEmployee.EmployeeId); currentEmployee.Missions = new MissionService(employeeService, missionService).GetEducationByEmployeeId(existEmployee.EmployeeId); if (currentEmployee.Departments == null) { return(new SessionLoginResult(false, "Can not find departmant info from Human Resource system for employee.")); } else if (currentEmployee.Educations == null) { return(new SessionLoginResult(false, "Can not find education info from Human Resource system for employee.")); } else if (currentEmployee.Missions == null) { return(new SessionLoginResult(false, "Can not find missions info from Human Resource system for employee.")); } CurrentEmployee = currentEmployee; return(new SessionLoginResult(true, null)); } else { return(new SessionLoginResult(false, "Username or password wrong.")); } }