public void Initialize(IDependencyRegistrar registrar) { registrar.RegisterType <ITestProjectContext, TestProjectEntities>(); registrar.RegisterType <IUserRepository, UserRepository>(); registrar.RegisterType <IUserSessionRepository, UserSessionRepository>(); registrar.RegisterType <IUserRoleRepository, UserRoleRepository>(); registrar.RegisterType <IRoleRepository, RoleRepository>(); }
public void Initialize(IDependencyRegistrar registrar) { registrar.RegisterType <IUserManager, UserManager>(); registrar.RegisterType <IUserRoleManager, UserRoleManager>(); registrar.RegisterType <IRoleManager, RoleManager>(); }