Ejemplo n.º 1
0
        public static void MyClassInitialize(TestContext testContext)
        {
            kernel = TestManager.ConfigureNInjectKernel();

            userProfileDao = kernel.Get <IUserProfileDao>();
            userService    = kernel.Get <IUserService>();
        }
Ejemplo n.º 2
0
        public void NinjectTestMethod()
        {
            //kernel = TestManager.ConfigureNInjectKernel("./Modules/ninjectConfiguration.xml");
            kernel = TestManager.ConfigureNInjectKernel();


            IUserProfileDao dao = kernel.Get <IUserProfileDao>();

            Assert.IsInstanceOfType(dao, typeof(IUserProfileDao));
        }
Ejemplo n.º 3
0
 public static void MyClassInitialize(TestContext testContext)
 {
     kernel         = TestManager.ConfigureNInjectKernel();
     eventDao       = kernel.Get <IEventDao>();
     categoryDao    = kernel.Get <ICategoryDao>();
     commentDao     = kernel.Get <ICommentDao>();
     userProfileDao = kernel.Get <IUserProfileDao>();
     labelDao       = kernel.Get <ILabelDao>();
     eventService   = kernel.Get <IEventService>();
 }
Ejemplo n.º 4
0
 public static void MyClassInitialize(TestContext testContext)
 {
     kernel      = TestManager.ConfigureNInjectKernel();
     eventDao    = kernel.Get <IEventDao>();
     categoryDao = kernel.Get <ICategoryDao>();
 }
Ejemplo n.º 5
0
 public static void MyClassInitialize(TestContext testContext)
 {
     kernel   = TestManager.ConfigureNInjectKernel();
     labelDao = kernel.Get <ILabelDao>();
 }
Ejemplo n.º 6
0
 public static void MyClassInitialize(TestContext testContext)
 {
     kernel       = TestManager.ConfigureNInjectKernel();
     userGroupDao = kernel.Get <IUserGroup1Dao>();
 }