public LocalStorageManager(ILocalStorageRepository localStorageRepository)
        {
            if (localStorageRepository == null)
            {
                throw new ArgumentNullException(nameof(localStorageRepository));
            }

            LocalStorageRepository = localStorageRepository;
        }
 public ProblemService(
     IProblemMiner[] problemMiners, 
     ILocalStorageRepository<Problem> problemRepository, 
     ILocalStorageRepository<TextDocument> documentRepository, 
     IProblemConverter problemConverter)
 {
     this.problemMiners = problemMiners;
     this.problemRepository = problemRepository;
     this.documentRepository = documentRepository;
     this.problemConverter = problemConverter;
 }
示例#3
0
        public FileSystemRepository(ILocalStorageRepository localStorageRepository)
        {
            if (localStorageRepository == null)
            {
                throw new ArgumentNullException(nameof(localStorageRepository));
            }

            LocalStorageRepository = localStorageRepository;

            AddFileSystemItem(FileSystemInputStream);
            AddFileSystemItem(FileSystemRootFolder);
        }
 public UserRepository(AngularFormsContext db, ILocalStorageRepository localStorageRepository)
 {
     _db = db;
     _localStorageRepository = localStorageRepository;
 }