Esempio n. 1
0
 public AuthenticationService(IJwtTokenService jwtTokenService,
                              IUserRepository userRepository,
                              ILandmarkService landmarkService)
 {
     this.jwtTokenService = jwtTokenService;
     this.userRepository  = userRepository;
     this.landmarkService = landmarkService;
 }
 public LandmarkController(ILandmarkService landmarkService, IPictureService pictureService,
                           ITownService townService, ILocationService locationService,
                           INotificationService notificationService, IUserNotificationService userNotificationService,
                           IUserService userService)
 {
     this._landmarkService         = landmarkService;
     this._pictureService          = pictureService;
     this._townService             = townService;
     this._locationService         = locationService;
     this._notificationService     = notificationService;
     this._userNotificationService = userNotificationService;
     this._userService             = userService;
 }
Esempio n. 3
0
        public LandmarkServiceTest()
        {
            var builder = new ConfigurationBuilder()
                          .SetBasePath(Directory.GetCurrentDirectory())
                          .AddJsonFile("appsettings.json")
                          .Build();

            var dbonnection = builder.GetConnectionString("SqlServer");

            var serviceProvider = new ServiceCollection()
                                  .AddDbContext <NYCLandmarkContext>(options => options.UseSqlServer(dbonnection))
                                  .AddScoped <ILandmarkRepository, LandmarkRepository>()
                                  .AddScoped <ILandmarkService, LandmarkService>()
                                  .BuildServiceProvider();

            serviceProvider.GetRequiredService <NYCLandmarkContext>();
            serviceProvider.GetRequiredService <ILandmarkRepository>();

            _landmarkService = serviceProvider.GetRequiredService <ILandmarkService>();

            AutoMapperConfiguration.Configure();
        }
Esempio n. 4
0
 public ListModel(ILandmarkService service)
 {
     this._service = service;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="lpcReportService"></param>
 /// <param name="landmarkService"></param>
 public LPCReportController(ILPCReportService lpcReportService, ILandmarkService landmarkService)
 {
     _lpcReportService = lpcReportService;
     _landmarkService  = landmarkService;
 }
Esempio n. 6
0
 public ProcessService(ILandmarkService ls, ICelebrityService cs)
 {
     this.landmarkService  = ls;
     this.celebrityService = cs;
 }
Esempio n. 7
0
 public EditModel(ILandmarkService service, IMapper mapper, IHostingEnvironment hostingEnvironment)
 {
     this._service            = service;
     this._mapper             = mapper;
     this._hostingEnvironment = hostingEnvironment;
 }
Esempio n. 8
0
 public NoteRepository(ApplicationDbContext dbContext,
                       ILandmarkService landmarkService)
 {
     this.dbContext       = dbContext;
     this.landmarkService = landmarkService;
 }
Esempio n. 9
0
        public HomeController(ILandmarkService landmarkService)
        {
            _landmarkService = landmarkService;

            this._landmarkService = landmarkService;
        }
Esempio n. 10
0
 public MapsController(ILandmarkService landmarkService)
 {
     _landmarkService = landmarkService;
 }
Esempio n. 11
0
 public HomeController(ILandmarkService landmarkService)
 {
Esempio n. 12
0
 public AddModel(ILandmarkService service, IHostingEnvironment hostingEnvironment)
 {
     this._service = service;
     this._hostingEnvironment = hostingEnvironment;
     this.AddLandmarkBindingModel = new AddEditLandmarkBindingModel();
 }
Esempio n. 13
0
 public LandmarkController(ILandmarkService landmarkService, IUserService userService, ICommentService commentService)
 {
     this._landmarkService = landmarkService;
     this._userService     = userService;
     this._commentService  = commentService;
 }
Esempio n. 14
0
 public LandmarkController(ILandmarkService service)
 {
     this._service = service;
 }
Esempio n. 15
0
 public UserLandmarkController(ILandmarkService landmarkService, IUserService userService)
 {
     this._landmarkService = landmarkService;
     this._userService     = userService;
 }
Esempio n. 16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LpcReportController"/> class.
 /// </summary>
 /// <param name="lpcReportService"></param>
 /// <param name="landmarkService"></param>
 public LpcReportController(ILpcReportService lpcReportService, ILandmarkService landmarkService)
 {
     _lpcReportService = lpcReportService ?? throw new ArgumentNullException(nameof(lpcReportService));
     _landmarkService  = landmarkService ?? throw new ArgumentNullException(nameof(landmarkService));
 }
Esempio n. 17
0
 public AddModel(ILandmarkService service)
 {
     this._service = service;
     this.AddLandmarkBindingModel = new AddEditLandmarkBindingModel();
 }
 public LandmarkServiceTest(CoreDataStoreDbFixture fixture, ITestOutputHelper output)
 {
     _landmarkService = fixture.LandmarkService;
     _output          = output;
 }
        private LpcReportController GetLpcReportController(ILpcReportService lpcReportService = null, ILandmarkService landmarkService = null)
        {
            lpcReportService = lpcReportService ?? new Mock <ILpcReportService>().Object;
            landmarkService  = landmarkService ?? new Mock <ILandmarkService>().Object;

            return(new LpcReportController(lpcReportService, landmarkService));
        }
Esempio n. 20
0
 public EditModel(ILandmarkService service, IMapper mapper)
 {
     this._service = service;
     this._mapper  = mapper;
 }