public SeasonsQueryHandler( IUnitOfWork uow, IToursService toursService) { _uow = uow; _toursService = toursService; }
public TeamsCreatedHandler( IBusPublisher busPublisher, IToursService toursService, IPlayersService playersService) { _busPublisher = busPublisher; _toursService = toursService; _playersService = playersService; }
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); }
public ToursController( IBusPublisher busPublisher, ITracer tracer, IToursService toursService, IPlayersService playersService, IIdentityService identityService) : base(busPublisher, tracer, identityService) { _toursService = toursService; _playersService = playersService; _identityService = identityService; }
public ToursController(IToursService tours) { this.tours = tours; }
public ToursController(IToursService toursService, ITourVariantService tourVariantService) { this.toursService = toursService; this.tourVariantService = tourVariantService; }
public ToursController(IToursService toursRepo) { tours = toursRepo; errorFactory = new ErrorActionResultFactory(this); }
public ResortsController(IResortService resortService, IToursService toursService) { this.resortService = resortService; this.toursService = toursService; }
public ToursController(IToursService toursService) { _toursService = toursService; }
public ToursServiceTest(TourFixture fixture) { this.fixture = fixture; service = new ToursService(mockMapper.Object, mockUnit.Object); }
public HomeController(IToursService tours, IMailService mail) { this.tours = tours; this.mail = mail; }