-мастер
This commit is contained in:
parent
098ae3bc27
commit
c1978eba2e
@ -18,29 +18,5 @@ namespace StudentProgressRecord
|
|||||||
ApplicationConfiguration.Initialize();
|
ApplicationConfiguration.Initialize();
|
||||||
Application.Run(new University());
|
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user