예제 #1
0
 public HomeViewModel(IDescriptionService descriptionService, IMvxMessenger messenger)
 {
     _token = messenger.SubscribeOnMainThread<TickMessage>(OnTick);
     Descriptions = descriptionService.Descriptions
                                     .Select(x => new DescriptionViewModel(x))
                                     .ToList();
 }
예제 #2
0
 private Item(
     IDescriptionService descriptionService,
     IOutputService outputService)
 {
     _descriptionService = descriptionService;
     _outputService      = outputService;
 }
예제 #3
0
        public MainViewModel(INavigationService navigationService, IDescriptionService descriptionService, IDataService dataService)
            : base("MainView", navigationService)
        {
            this.dataService = dataService;

            this.Title = $"Hello, {descriptionService.Platform}!";
        }
예제 #4
0
 public HomeViewModel(IDescriptionService descriptionService, IMvxMessenger messenger)
 {
     _token       = messenger.SubscribeOnMainThread <TickMessage>(OnTick);
     Descriptions = descriptionService.Descriptions
                    .Select(x => new DescriptionViewModel(x))
                    .ToList();
 }
예제 #5
0
 public AnimalService(IRepository <Animal> repository, IMapper mapper, IKeepingService keepingService,
                      IAttitudeToService attitudesToService, IDefectService defectService,
                      IProcessingService processingService, INeedsService needsService,
                      IVaccinationService vaccinationService, IIsNewService isNewService, IUriService uriService,
                      IAnimalLocationHistoryService locationHistoryService,
                      IStatisticService <Animal> statisticService, IAnimalViewLocationService locationService,
                      IFilterService <Animal, AnimalQuery> animalFilterService,
                      IDescriptionService descriptionService, IBreedService breedService)
 {
     _repository             = repository;
     _mapper                 = mapper;
     _keepingService         = keepingService;
     _attitudesToService     = attitudesToService;
     _defectService          = defectService;
     _processingService      = processingService;
     _needsService           = needsService;
     _isNewService           = isNewService;
     _vaccinationService     = vaccinationService;
     _uriService             = uriService;
     _locationHistoryService = locationHistoryService;
     _statisticService       = statisticService;
     _descriptionService     = descriptionService;
     _breedService           = breedService;
     _locationService        = locationService;
     _animalFilterService    = animalFilterService;
 }
        public static TestServer CreateTestServer(IArtistDetailsService artistService = null,
            ICoverArtUrlService coverArtUrlService = null,
            IDescriptionService descriptionService = null)
        {
            var builder = TestServer.CreateBuilder().UseStartup<Startup>();

            return new TestServer(builder);
        }
예제 #7
0
        public ServiceRepository(
            IStatusService statusService,
            IDescriptionService descriptionService)
        {
            _statusService      = statusService;
            _descriptionService = descriptionService;

            _cachedServices = new List <Service>();
        }
 public MusicBrainzService(IHttpClientWrapper httpClient,
     IDescriptionService descriptionService,
     ICoverArtUrlService coverArtUrlService,
     IErrorLogger logger)
 {
     _client = httpClient;
     _descriptionService = descriptionService;
     _coverArtUrlService = coverArtUrlService;
     _logger = logger;
     _client.BaseAddress = new Uri(Uri);
 }
예제 #9
0
        public Scene(Game game, string name)
            : base(game)
        {
            this.name = name;
            sceneObjects = new List<DisplayObject>();
            hotSpots = new List<HotSpot>();
            displayObjects = new List<IDisplayObject>();

            spriteBatch = (SpriteBatch)game.Services.GetService(typeof(SpriteBatch));
            inputManager = (IInputService)game.Services.GetService(typeof(IInputService));
            descriptionManager = (IDescriptionService)game.Services.GetService(typeof(IDescriptionService));
            languageManager = (ILanguageService)game.Services.GetService(typeof(ILanguageService));
        }
예제 #10
0
        public Inventory(Game game, string backgroundAsset, string itemsAsset, string pickupSound)
            : base(game)
        {
            this.backgroundAsset = backgroundAsset;
            this.itemsAsset = itemsAsset;
            this.pickupSound = pickupSound;

            spriteBatch = (SpriteBatch)game.Services.GetService(typeof(SpriteBatch));
            inputManager = (IInputService)game.Services.GetService(typeof(IInputService));
            descriptionManager = (IDescriptionService)game.Services.GetService(typeof(IDescriptionService));

            items = new List<Item>();
            oldItems = new List<Item>();
            itemCombinations = new List<ItemCombination>();
            triggeredCombinations = new List<ItemCombination>();
        }
예제 #11
0
 public HomeController(IRealEstateService realEstateService, IPersonService personService, IDescriptionService descriptionService)
 {
     _realEstateService  = realEstateService;
     _personService      = personService;
     _descriptionService = descriptionService;
 }
예제 #12
0
 public DescriptionController(IDescriptionService descriptionService)
 {
     _descriptionService = descriptionService;
 }
        public DescriptionController(IDescriptionService descriptionService)
        {
            Check.If(descriptionService).IsNotNull();

            _descriptionService = descriptionService;
        }
예제 #14
0
 private Location(IDescriptionService descriptionService)
 {
     _descriptionService = descriptionService;
 }
 public DescriptionController(IDescriptionService description)
 {
     _descriptionManager = (DescriptionManager)description;
 }
예제 #16
0
 public AdminController(IRealEstateService realEstateService, IDescriptionService descriptionService)
 {
     sendForm            = new SendFormViewModel();
     _realEstateService  = realEstateService;
     _descriptionService = descriptionService;
 }