Beispiel #1
0
 public void Initialize()
 {
     TestBootstrapper.TestServiceStructureMap();
     AutoMapperInit.BuildMap();
     domainService = ObjectFactory.GetInstance <IUserService>();
     domainService.UserRepository = ObjectFactory.GetInstance <IUserRepository>();
     domainService.UnitOfWork     = ObjectFactory.GetInstance <IUnitOfWork>();
 }
 public void Initialize()
 {
     TestBootstrapper.TestServiceStructureMap();
     AutoMapperInit.BuildMap();
     userService    = ObjectFactory.GetInstance <IUserService>();
     userController = new UserController(userService);
     MockControllerHelpers.RegisterTestRoutes();
 }