Beispiel #1
0
 /// <summary>
 /// Load your modules or register your services here!
 /// </summary>
 /// <param name="kernel">The kernel.</param>
 private static void RegisterServices(IKernel kernel)
 {
     var dataContext = new NRDataContext();
     var usersService = new UserService(dataContext);
     kernel.Bind<IUserService>().ToConstant(usersService);
 }
Beispiel #2
0
 public UserService(NRDataContext dataContext)
 {
     _dataContext = dataContext;
 }