Ejemplo n.º 1
0
 public SeasonsQueryHandler(
     IUnitOfWork uow,
     IToursService toursService)
 {
     _uow          = uow;
     _toursService = toursService;
 }
Ejemplo n.º 2
0
 public TeamsCreatedHandler(
     IBusPublisher busPublisher,
     IToursService toursService,
     IPlayersService playersService)
 {
     _busPublisher   = busPublisher;
     _toursService   = toursService;
     _playersService = playersService;
 }
Ejemplo n.º 3
0
        public void StartUp()
        {
            fakeToursStorage = new Mock <IToursRepository>();
            fakeToursStorage.Setup(r => r.GetToursWithinKmRange(It.IsAny <double>(), It.IsAny <double>(), It.IsAny <double>()))
            .Returns(GetFakeTours());
            fakeToursStorage.Setup(r => r.GetById(It.IsAny <int>())).Returns((int x) => GetFakeTours().First(t => t.Id == x));
            fakeLandmarksStorage = new Mock <ILandmarksRepository>();

            testImageData = "imageData";
            service       = new ToursService(fakeToursStorage.Object);
        }
Ejemplo n.º 4
0
 public ToursController(
     IBusPublisher busPublisher,
     ITracer tracer,
     IToursService toursService,
     IPlayersService playersService,
     IIdentityService identityService) : base(busPublisher, tracer, identityService)
 {
     _toursService    = toursService;
     _playersService  = playersService;
     _identityService = identityService;
 }
Ejemplo n.º 5
0
 public ToursController(IToursService tours)
 {
     this.tours = tours;
 }
Ejemplo n.º 6
0
 public ToursController(IToursService toursService, ITourVariantService tourVariantService)
 {
     this.toursService       = toursService;
     this.tourVariantService = tourVariantService;
 }
Ejemplo n.º 7
0
 public ToursController(IToursService toursRepo)
 {
     tours        = toursRepo;
     errorFactory = new ErrorActionResultFactory(this);
 }
 public ResortsController(IResortService resortService, IToursService toursService)
 {
     this.resortService = resortService;
     this.toursService  = toursService;
 }
Ejemplo n.º 9
0
 public ToursController(IToursService toursService)
 {
     _toursService = toursService;
 }
 public ToursServiceTest(TourFixture fixture)
 {
     this.fixture = fixture;
     service      = new ToursService(mockMapper.Object, mockUnit.Object);
 }
Ejemplo n.º 11
0
 public HomeController(IToursService tours, IMailService mail)
 {
     this.tours = tours;
     this.mail  = mail;
 }