protected BaseDataListViewModel(ViewModelServiceContainer container) : base(container.Messenger) { _log = container.Log; _translationService = container.LocalizationService; _sequenceProvider = container.SequenceService; }
public Playlist(ViewModelServiceContainer container, IValidator <Playlist> validator, DialogViewModel dialogViewModel, Data.Playlist model) : base(model, validator, container.Messenger) { using (BusyStack.GetToken()) { _itemsLock = new object(); _dialogViewModel = dialogViewModel ?? throw new ArgumentNullException(nameof(dialogViewModel), $"{nameof(dialogViewModel)} {Resources.IsRequired}"); _sequenceProvider = container.SequenceService; _translator = container.LocalizationService; _title = model.Title; _description = model.Description; _repeatMode = (RepeatMode)model.RepeatMode; _isShuffeling = model.IsShuffeling; _sequence = model.Sequence; RepeatModes = new RangeObservableCollection <RepeatMode>(Enum.GetValues(typeof(RepeatMode)).Cast <RepeatMode>().ToList()); History = new Stack <int>(); Items = new RangeObservableCollection <MediaItem>(); Items.CollectionChanged += (o, e) => OnPropertyChanged(nameof(Count)); BindingOperations.EnableCollectionSynchronization(Items, _itemsLock); View = CollectionViewSource.GetDefaultView(Items); OnPropertyChanged(nameof(Count)); InitializeCommands(); Validate(); } }
// Constructor public SequenceController( ISequenceService sequenceService, ISequenceStrategyFactory sequenceStrategyFactory) { _sequenceService = sequenceService; _sequenceStrategyFactory = sequenceStrategyFactory; }
public InvestController(IActionStation actionStation, ISequenceService sequenceService, IInvestmentService investmentService) : base(actionStation) { _sequenceService = sequenceService; _investmentService = investmentService; }
public NodeController(ISequenceService sequenceService, Grit.Tree.ITreeService treeService, INodeService nodeService) { this.SequenceService = sequenceService; this.NodeService = nodeService; this.TreeService = treeService; }
public BookingController(IActionBus actionBus, ISequenceService sequenceService, IBookingService bookingService) { _actionBus = actionBus; _sequenceService = sequenceService; _bookingService = bookingService; }
public TransactionsController(ILog log, ISequenceService sequenceService, IBuildRepository buildRepository) { _log = log; _sequenceService = sequenceService; _buildRepository = buildRepository; }
public InvestController(IActionStation actionStation, ISequenceService sequenceService, IInvestmentService investmentService) : base(actionStation) { _sequenceService = sequenceService; _investmentService = investmentService; }
public KnowledgeBasesController(ApplicationDbContext context, ISequenceService sequenceService, IStorageService storageService, ILogger <KnowledgeBasesController> logger) { _context = context; _sequenceService = sequenceService; _storageService = storageService; _logger = logger; }
protected BaseMapper(ViewModelServiceContainer container, IValidator <T> validator) { _container = container; _translationService = container.LocalizationService; _sequenceProvider = container.SequenceService; _log = container.Log; _messenger = container.Messenger; _validator = validator ?? throw new ArgumentNullException(nameof(validator), $"{nameof(validator)} {Resources.IsRequired}"); }
public HomeController(ISequenceService sequenceService, Grit.Tree.ITreeService treeService, INodeService nodeService, IUserService userService) { this.SequenceService = sequenceService; this.NodeService = nodeService; this.TreeService = treeService; this.UserService = userService; }
public BalancesController(ILog log, ISequenceService sequenceService, IBalanceRepository balanceRepository, IBalancePositiveRepository balancePositiveRepository) { _log = log; _sequenceService = sequenceService; _balanceRepository = balanceRepository; _balancePositiveRepository = balancePositiveRepository; }
public ClientController(ISequenceService sequenceService, Grit.Tree.ITreeService treeService, IClientService clientService, INodeService nodeService) { this.SequenceService = sequenceService; this.ClientService = clientService; this.TreeService = treeService; this.NodeService = nodeService; }
public KnowledgeBasesController(ApplicationDbContext context, ISequenceService sequenceService, IStorageService storageService, ILogger <KnowledgeBasesController> logger) { _context = context; _sequenceService = sequenceService; _storageService = storageService; _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
/// <summary> /// CONSTRUCTOR CONTROLLER. /// </summary> /// <param name="context">DbContext.</param> public KnowledgeBasesController(KnowledgeSpaceContext context, ISequenceService sequenceService, IStorageService storageService, ICacheService cacheService) { _context = context; _sequenceService = sequenceService; _storageService = storageService; _cacheService = cacheService; }
public SecurityController(IAuthenticator authenticator, IActionBus actionBus, IEventBus eventBus, ISequenceService sequenceService, IUserSecurityService userSecurityService) : base(authenticator, actionBus) { EventBus = eventBus; _sequenceService = sequenceService; _userSecurityService = userSecurityService; }
public Playlist(ViewModelServiceContainer container, IValidator <Playlist> validator, IDialogViewModel dialogViewModel, IMediaItemMapper mediaItemMapper, PlaylistModel model) : base(model, validator, container?.Messenger) { if (container == null) { throw new ArgumentNullException(nameof(container), $"{nameof(container)} {Resources.IsRequired}"); } SkipChangeTracking = true; using (BusyStack.GetToken()) { _itemsLock = new object(); _mediaItemMapper = mediaItemMapper ?? throw new ArgumentNullException(nameof(mediaItemMapper), $"{nameof(mediaItemMapper)} {Resources.IsRequired}"); _dialogViewModel = dialogViewModel ?? throw new ArgumentNullException(nameof(dialogViewModel), $"{nameof(dialogViewModel)} {Resources.IsRequired}"); _sequenceProvider = container.SequenceService; _translator = container.LocalizationService; _title = model.Title; _description = model.Description; _repeatMode = (RepeatMode)model.RepeatMode; _isShuffeling = model.IsShuffeling; _sequence = model.Sequence; RepeatModes = new RangeObservableCollection <RepeatMode>(Enum.GetValues(typeof(RepeatMode)).Cast <RepeatMode>().ToList()); _history = new Stack <int>(); Items = new RangeObservableCollection <MediaItem>(); _items.CollectionChanged += (o, e) => OnPropertyChanged(nameof(Count)); BindingOperations.EnableCollectionSynchronization(Items, _itemsLock); View = CollectionViewSource.GetDefaultView(Items); // TODO add sorting by sequence OnPropertyChanged(nameof(Count)); LoadFromFileCommand = AsyncCommand.Create(LoadFromFile, () => CanLoadFromFile()); LoadFromFolderCommand = AsyncCommand.Create(LoadFromFolder, () => CanLoadFromFolder()); LoadFromUrlCommand = AsyncCommand.Create(LoadFromUrl, () => CanLoadFromUrl()); RemoveCommand = new RelayCommand <object>(Remove, CanRemove); RemoveRangeCommand = new RelayCommand <IList>(RemoveRange, CanRemoveRange); ClearCommand = new RelayCommand(() => Clear(), CanClear); AddRange(_mediaItemMapper.GetMany(model.MediaItems)); MessageTokens.Add(Messenger.Subscribe <PlayingMediaItemMessage>(OnPlaybackItemChanged, m => m.PlaylistId == Id && _items.Contains(m.Content))); Validate(); } SkipChangeTracking = false; }
public KnowledgeBasesController(ApplicationDbContext context, ISequenceService sequenceService, IStorageService storageService, ILogger <KnowledgeBasesController> logger, IEmailSender emailSender, IViewRenderService viewRenderService, ICacheService cacheService) { _context = context; _sequenceService = sequenceService; _storageService = storageService; _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _emailSender = emailSender; _viewRenderService = viewRenderService; _cacheService = cacheService; }
public AnimalsController( IMapper mapper, IBlFullCrud <AnimalDto, AnimalDto, Guid> animalService, IImageService imageService, ISequenceService sequenceService ) { Require.Objects.NotNull(mapper, nameof(mapper)); Require.Objects.NotNull(animalService, nameof(animalService)); Require.Objects.NotNull(imageService, nameof(imageService)); _mapper = mapper; this._animalService = animalService; _imageService = imageService; _sequenceService = sequenceService; }
public ProductsController(ApplicationDbContext context, ILogger <ProductsController> logger, IMapper mapper, IStringLocalizer <ProductsController> localizer, IString returnString, ISequenceService sequenceService, IStorageService storageService) { _context = context; _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _mapper = mapper; _localizer = localizer; _returnString = returnString; _sequenceService = sequenceService; _storageService = storageService; }
public InvestController(IActionBus actionBus, IServiceBus serviceBus, ISequenceService sequenceService) : base(actionBus, serviceBus) { _sequenceService = sequenceService; }
public InvestController(ISequenceService sequenceService, IInvestmentService investmentService) { _sequenceService = sequenceService; _investmentService = investmentService; }
public AddressesController(ISequenceService sequenceService) { _sequenceService = sequenceService; }
public InvestController(IActionBus actionBus, IServiceBus serviceBus, ISequenceService sequenceService) : base(actionBus, serviceBus) { _sequenceService = sequenceService; }
public void Initialize() { Service = new SequenceService(); }
public HomeController(ISequenceService sequence) { sequenceService = sequence; }
public InvestController(ISequenceService sequenceService, IInvestmentService investmentService) { _sequenceService = sequenceService; _investmentService = investmentService; }
public SequenceController(ISequenceService sequenceService) { _sequenceService = sequenceService; }
public ShortLinkService(IOptions <ShortLinkOptions> options, ICacheService cacheService, ISequenceService sequenceService) { this.options = options.Value; this.cacheService = cacheService; this.sequenceService = sequenceService; }
public WalletsController(ISequenceService sequenceService) { _sequenceService = sequenceService; }
public ViewModelServiceContainer(ILoggingService log, ILoggingNotifcationService notificationService, ILocalizationService localizationService, IMessenger messenger, ISequenceService sequenceService) { Log = log ?? throw new ArgumentNullException(nameof(log), $"{nameof(log)} {Resources.IsRequired}"); LocalizationService = localizationService ?? throw new ArgumentNullException(nameof(localizationService), $"{nameof(localizationService)} {Resources.IsRequired}"); SequenceService = sequenceService ?? throw new ArgumentNullException(nameof(sequenceService), $"{nameof(sequenceService)} {Resources.IsRequired}"); Messenger = messenger ?? throw new ArgumentNullException(nameof(messenger), $"{nameof(messenger)} {Resources.IsRequired}"); NotificationService = notificationService ?? throw new ArgumentNullException(nameof(notificationService), $"{nameof(notificationService)} {Resources.IsRequired}"); }
public void SetUp() { _sequenceServiceMock = Substitute.For <ISequenceService>(); _sequenceController = new SequenceController(_sequenceServiceMock); }
public TestController(ISequenceService authenticator) { }