-мастер

This commit is contained in:
funa4i 2024-10-29 13:58:59 +04:00
parent 098ae3bc27
commit c1978eba2e

View File

@ -18,29 +18,5 @@ namespace StudentProgressRecord
ApplicationConfiguration.Initialize();
Application.Run(new University());
}
private static IUnityContainer CreateContainer()
{
var container = new UnityContainer();
container.RegisterType<IStatementRepository, StatementRepository>
(new TransientLifetimeManager());
container.RegisterType<IStudentRepository, StudentRepository>
(new TransientLifetimeManager());
container.RegisterType<ISubjectRepository, SubjectRepository>
(new TransientLifetimeManager());
container.RegisterType<ITeacherRepository, TeacherRepository>
(new TransientLifetimeManager());
container.RegisterType<IStudentTransitionRepository, StudentTransitionRepository>
(new TransientLifetimeManager());
return container;
}
}
}