コード例 #1
0
 public HomeController(
     IGetCountsService countsService,
     ILandmarksService landmarksService,
     IHikesService hikesService)
 {
     this.countsService    = countsService;
     this.landmarksService = landmarksService;
     this.hikesService     = hikesService;
 }
コード例 #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;
 }
コード例 #3
0
 public LandmarksController(ILandmarksService landmarksRepo)
 {
     landmarks    = landmarksRepo;
     errorFactory = new ErrorActionResultFactory(this);
 }
コード例 #4
0
 public void SetUp()
 {
     SetUpRepositories();
     service = new LandmarksService(landmarks.Object);
 }