Esempio n. 1
0
 public HomeController(
     IGetCountsService countsService,
     ILandmarksService landmarksService,
     IHikesService hikesService)
 {
     this.countsService    = countsService;
     this.landmarksService = landmarksService;
     this.hikesService     = hikesService;
 }
Esempio n. 2
0
 public LandmarksController(
     ICategoriesService categoriesService,
     IRegionsService regionsService,
     ITownsService townsService,
     IMountainsService mountainsService,
     ILandmarksService landmarksService,
     UserManager <ApplicationUser> userManager,
     IWebHostEnvironment hostEnvironment)
 {
     this.categoriesService = categoriesService;
     this.regionsService    = regionsService;
     this.townsService      = townsService;
     this.mountainsService  = mountainsService;
     this.landmarksService  = landmarksService;
     this.userManager       = userManager;
     this.hostEnvironment   = hostEnvironment;
 }
 public LandmarksController(ILandmarksService landmarksRepo)
 {
     landmarks    = landmarksRepo;
     errorFactory = new ErrorActionResultFactory(this);
 }
 public void SetUp()
 {
     SetUpRepositories();
     service = new LandmarksService(landmarks.Object);
 }