예제 #1
0
 public ChatMessageViewModel(
     IFormatService formatService,
     IDialogsService dialogsService)
 {
     _formatService  = formatService;
     _dialogsService = dialogsService;
 }
예제 #2
0
        public void SetUp()
        {
            _mockRepository = new MockRepository();
            _formatRepository = _mockRepository.DynamicMock<IRepository<Format>>();

            _formatService = new FormatService(_formatRepository);
        }
예제 #3
0
 public FiltersController(IGenreService genreService,
                          IFormatService formatService,
                          ILanguageService languageService)
 {
     this.genreService    = genreService;
     this.formatService   = formatService;
     this.languageService = languageService;
 }
예제 #4
0
        public InstallService(MainViewModel mainViewModel, IPartitionService partitionService, IFormatService formatService, IBootService bootService, IDialogService dialogService, ILoggerFactory loggerFactory)
        {
            Logger = loggerFactory.CreateLogger <InstallService>();

            MainViewModel    = mainViewModel;
            PartitionService = partitionService;
            FormatService    = formatService;
            BootService      = bootService;
            DialogService    = dialogService;
        }
예제 #5
0
 public GenerateChoresService(IGetElementsService getElementsService,
                              ICrudService <Chore> choresService,
                              IFormatService formatsService,
                              ICrudService <Installation> installationsService,
                              IKeepContext context)
 {
     _choresService        = choresService;
     _getElementsService   = getElementsService;
     _formatsService       = formatsService;
     _installationsService = installationsService;
     _context = context;
 }
예제 #6
0
 public ThingController(
     IThingService thingService,
     ITagService tagService,
     IMaterialService materialService,
     IFormatService formatService,
     IStateService stateService,
     IUserService userService)
 {
     _thingService = thingService;
     _tagService = tagService;
     _materialService = materialService;
     _formatService = formatService;
     _stateService = stateService;
     _userService = userService;
 }
예제 #7
0
 public CreateChatViewModel(
     IChatsListManager chatsListManager,
     IChatService chatService,
     IPageNavigationService pageNavigationService,
     IChatLocalizedStrings localizedStrings,
     IFormatService formatService,
     IUploadImageService uploadImageService,
     IDialogsService dialogsService)
 {
     _chatsListManager      = chatsListManager;
     _chatService           = chatService;
     _pageNavigationService = pageNavigationService;
     _formatService         = formatService;
     _uploadImageService    = uploadImageService;
     _dialogsService        = dialogsService;
     LocalizedStrings       = localizedStrings;
 }
예제 #8
0
 public BookService(IRepository <Book, BookId> repository,
                    ILanguageLookupDataService languageLookupDataService   = null,
                    IPublisherLookupDataService publisherLookupDataService = null,
                    IAuthorLookupDataService authorLookupDataService       = null,
                    IFormatLookupDataService formatLookupDataService       = null,
                    IGenreLookupDataService genreLookupDataService         = null,
                    IGenreService genreService   = null,
                    IFormatService formatService = null)
 {
     Repository = repository ?? throw new ArgumentNullException(nameof(repository));
     _languageLookupDataService  = languageLookupDataService;
     _publisherLookupDataService = publisherLookupDataService;
     _authorLookupDataService    = authorLookupDataService;
     _formatLookupDataService    = formatLookupDataService;
     _genreLookupDataService     = genreLookupDataService;
     _genreService  = genreService;
     _formatService = formatService;
 }
        public FormatDetailViewModel(IEventAggregator eventAggregator,
                                     ILogger logger,
                                     IFormatService domainService,
                                     IFormatLookupDataService formatLookupDataService,
                                     IDialogService dialogService)
            : base(eventAggregator, logger, domainService, dialogService)
        {
            _formatLookupDataService = formatLookupDataService ?? throw new ArgumentNullException(nameof(formatLookupDataService));

            ChangeEditedFormatCommand = new DelegateCommand <Guid?>(OnChangeEditedFormatExecute);
            SaveItemCommand           = new DelegateCommand(SaveItemExecute, base.SaveItemCanExecute)
                                        .ObservesProperty(() => SelectedItem.Name);

            SelectedItem = CreateWrapper(domainService.CreateItem());

            Formats = new ObservableCollection <LookupItem>();

            UserMode = (!UserMode.Item1, DetailViewState.EditMode, Brushes.LightGray, !UserMode.Item4).ToTuple();
        }
예제 #10
0
        public ChatMessagesViewModel(
            IImagePickerService imagePicker,
            IPageNavigationService pageNavigationService,
            IChatLocalizedStrings localizedStrings,
            IFormatService formatService,
            ChatManager chatManager,
            ConnectionStatusViewModel connectionStatusViewModel)
        {
            _imagePicker           = imagePicker;
            _pageNavigationService = pageNavigationService;
            _localizedStrings      = localizedStrings;
            _formatService         = formatService;
            _chatManager           = chatManager;

            ConnectionStatus = connectionStatusViewModel;

            BackCommand     = new RelayCommand(_pageNavigationService.GoBack, () => _pageNavigationService.CanGoBack);
            ShowInfoCommand = new RelayCommand(ShowInfo);
        }
예제 #11
0
 public DoFormatApiController(ILogger <DoFormatApiController> logger, IFormatService service)
     : base(logger, service)
 {
     _service = service;
 }
예제 #12
0
        public void SetUp()
        {
            _mockRepository = new MockRepository();
            _thingService = _mockRepository.DynamicMock<IThingService>();
            _tagService = _mockRepository.DynamicMock<ITagService>();
            _materialService = _mockRepository.DynamicMock<IMaterialService>();
            _formatService = _mockRepository.DynamicMock<IFormatService>();
            _stateService = _mockRepository.DynamicMock<IStateService>();
            _userService = _mockRepository.DynamicMock<IUserService>();

            _thingController = new ThingController(
                _thingService,
                _tagService,
                _materialService,
                _formatService,
                _stateService,
                _userService);

            Mapper.CreateMap<Thing, ThingModel>();
            Mapper.CreateMap<ThingModel, Thing>();
        }
예제 #13
0
        public void SetUp()
        {
            _formatService = Substitute.For <IFormatService>();

            _sut = new AllFormatsQueryHandler(_formatService);
        }
예제 #14
0
        internal static ObjectFormatViewModel Create(ObjectFormat format, string tabId, int parentId, IFormatService formatService, bool pageOrTemplate)
        {
            var model = Create <ObjectFormatViewModel>(format, tabId, parentId);

            model._service        = formatService;
            model._pageOrTemplate = pageOrTemplate;
            return(model);
        }
 public FormatListOfStringsInteractor(IFormatService formatService)
 {
     _formatService = formatService;
 }
예제 #16
0
 public FormatController(IFormatService formatService)
 {
     _formatService = formatService;
 }
예제 #17
0
 public FormatController(IFormatService formatService)
 {
     _formatService = formatService;
 }
예제 #18
0
 public LastMessageBodyViewModel(IFormatService formatService, ChatMessageModel model)
 {
     _formatService = formatService;
     _model         = model;
 }
예제 #19
0
 public AllFormatsQueryHandler(IFormatService formatService)
 {
     _formatService = formatService;
 }
예제 #20
0
 public void SetUp()
 {
     _service = new FormatService();
 }
예제 #21
0
 public YugiohBanlistService(IFormatService formatService, IBanlistService banlistService, IBanlistCardsService banlistCardsService)
 {
     _formatService       = formatService;
     _banlistService      = banlistService;
     _banlistCardsService = banlistCardsService;
 }
예제 #22
0
 // TODO YP: need to avoid to use fat ViewModels as navParam,
 //          because navParam will be de/serialized
 public ChatSummaryViewModel()
 {
     LocalizedStrings = Dependencies.Container.Resolve <IChatLocalizedStrings>();
     _formatService   = Dependencies.Container.Resolve <IFormatService>();
 }
        public void SetUp()
        {
            _mockRepository = new MockRepository();
            _formatService = _mockRepository.DynamicMock<IFormatService>();

            _formatController = new FormatController(_formatService);
            Mapper.CreateMap<Format, FormatModel>();
            Mapper.CreateMap<FormatModel, Format>();
        }