public static void MyClassInitialize(TestContext testContext) { kernel = TestManager.ConfigureNInjectKernel(); userProfileDao = kernel.Get <IUserProfileDao>(); userService = kernel.Get <IUserService>(); }
public void NinjectTestMethod() { //kernel = TestManager.ConfigureNInjectKernel("./Modules/ninjectConfiguration.xml"); kernel = TestManager.ConfigureNInjectKernel(); IUserProfileDao dao = kernel.Get <IUserProfileDao>(); Assert.IsInstanceOfType(dao, typeof(IUserProfileDao)); }
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>(); }
public static void MyClassInitialize(TestContext testContext) { kernel = TestManager.ConfigureNInjectKernel(); eventDao = kernel.Get <IEventDao>(); categoryDao = kernel.Get <ICategoryDao>(); }
public static void MyClassInitialize(TestContext testContext) { kernel = TestManager.ConfigureNInjectKernel(); labelDao = kernel.Get <ILabelDao>(); }
public static void MyClassInitialize(TestContext testContext) { kernel = TestManager.ConfigureNInjectKernel(); userGroupDao = kernel.Get <IUserGroup1Dao>(); }