Beispiel #1
0
 /// <summary>Initializes a new instance of the <see cref="MaterialsService"/> class.</summary>
 /// <param name="watchWordUnitOfWork">Unit of work over WatchWord repositories.</param>
 /// <param name="parser">Words parser.</param>
 /// <param name="imageService">Image service.</param>
 /// <param name="accountService">Account service.</param>
 public MaterialsService(IWatchWordUnitOfWork watchWordUnitOfWork, IScanWordParser parser, IImageService imageService, IAccountService accountService)
 {
     _watchWordUnitOfWork = watchWordUnitOfWork;
     _imageService        = imageService;
     _accountService      = accountService;
     _parser = parser;
 }
Beispiel #2
0
 /// <summary>Initializes a new instance of the <see cref="MaterialsService"/> class.</summary>
 /// <param name="watchWordUnitOfWork">Unit of work over WatchWord repositories.</param>
 /// <param name="accountService">Account service.</param>
 public SettingsService(IWatchWordUnitOfWork watchWordUnitOfWork, IAccountService accountService)
 {
     _watchWordUnitOfWork = watchWordUnitOfWork;
     _accountService      = accountService;
 }
Beispiel #3
0
 /// <summary>Initializes a new instance of the <see cref="TranslationService"/> class.</summary>
 /// <param name="settingsService">Settings service.</param>
 /// <param name="watchWordUnitOfWork">Unit of work over WatchWord repositories.</param>
 public TranslationService(ISettingsService settingsService, IWatchWordUnitOfWork watchWordUnitOfWork)
 {
     _settingsService     = settingsService;
     _watchWordUnitOfWork = watchWordUnitOfWork;
 }
Beispiel #4
0
 /// <summary>Initializes a new instance of the <see cref="VocabularyService"/> class.</summary>
 /// <param name="watchWordUnitOfWork">Unit of work over WatchWord repositories.</param>
 public AccountService(IWatchWordUnitOfWork watchWordUnitOfWork)
 {
     _watchWordUnitOfWork = watchWordUnitOfWork;
 }
Beispiel #5
0
 /// <summary>Initializes a new instance of the <see cref="VocabularyService"/> class.</summary>
 /// <param name="watchWordUnitOfWork">Unit of work over WatchWord repositories.</param>
 public VocabularyService(IWatchWordUnitOfWork watchWordUnitOfWork)
 {
     _watchWordUnitOfWork = watchWordUnitOfWork;
     _accountService      = new AccountService(watchWordUnitOfWork);
 }