public ChatMessageViewModel( IFormatService formatService, IDialogsService dialogsService) { _formatService = formatService; _dialogsService = dialogsService; }
public void SetUp() { _mockRepository = new MockRepository(); _formatRepository = _mockRepository.DynamicMock<IRepository<Format>>(); _formatService = new FormatService(_formatRepository); }
public FiltersController(IGenreService genreService, IFormatService formatService, ILanguageService languageService) { this.genreService = genreService; this.formatService = formatService; this.languageService = languageService; }
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; }
public GenerateChoresService(IGetElementsService getElementsService, ICrudService <Chore> choresService, IFormatService formatsService, ICrudService <Installation> installationsService, IKeepContext context) { _choresService = choresService; _getElementsService = getElementsService; _formatsService = formatsService; _installationsService = installationsService; _context = context; }
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; }
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; }
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(); }
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); }
public DoFormatApiController(ILogger <DoFormatApiController> logger, IFormatService service) : base(logger, service) { _service = service; }
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>(); }
public void SetUp() { _formatService = Substitute.For <IFormatService>(); _sut = new AllFormatsQueryHandler(_formatService); }
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; }
public FormatController(IFormatService formatService) { _formatService = formatService; }
public LastMessageBodyViewModel(IFormatService formatService, ChatMessageModel model) { _formatService = formatService; _model = model; }
public AllFormatsQueryHandler(IFormatService formatService) { _formatService = formatService; }
public void SetUp() { _service = new FormatService(); }
public YugiohBanlistService(IFormatService formatService, IBanlistService banlistService, IBanlistCardsService banlistCardsService) { _formatService = formatService; _banlistService = banlistService; _banlistCardsService = banlistCardsService; }
// 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>(); }