Exemple #1
0
 public GlossaryViewModel(IGlossaryRepository glossaryRepository)
 {
     if (glossaryRepository.Items == null)
     {
         glossaryRepository.Items = new List <Glossary>();
     }
     GlossaryRepository = glossaryRepository;
     _items             = new ObservableCollection <Glossary>(GlossaryRepository.Items);
     Items = _items;
     GenerateCommands();
 }
Exemple #2
0
 public FilesService(
     IFilesRepository filesRepository,
     IGlossaryRepository glossaryRepository,
     ILocaleRepository localeRepository,
     IFilesPackagesRepository filesPackagesRepository,
     SettingsModel settings
     )
 {
     this._filesRepository         = filesRepository;
     this._glossaryRepository      = glossaryRepository;
     this._localeRepository        = localeRepository;
     this._filesPackagesRepository = filesPackagesRepository;
     this._settings = settings;
 }
 public void Setup()
 {
     _glossaryRepo = Substitute.For<IGlossaryRepository>();
     _controller = new HomeController(_glossaryRepo);
 }
Exemple #4
0
 public GlossaryService(IGlossaryRepository glossaryRepository, ITranslationSubstringRepository translationSubstringRepository)
 {
     this._glossaryRepository = glossaryRepository;
     this._stringsRepository  = translationSubstringRepository;
 }
Exemple #5
0
 public GlossaryController(IGlossaryRepository glossaryRepository, IMapper mapper)
 {
     _glossaryRepository = glossaryRepository;
     _mapper             = mapper;
 }
Exemple #6
0
 public GlossaryService(IGlossaryRepository repository)
 {
     this._repository = repository;
 }
 public GlossaryItemsService(IGlossaryRepository glossaryRepository, IUnitOfWork unitOfWork, IMapper mapper)
 {
     _glossaryRepository = glossaryRepository;
     _unitOfWork         = unitOfWork;
     _mapper             = mapper;
 }
Exemple #8
0
 // Dependency Injection
 public GlossaryController(IGlossaryRepository repos)
 {
     _repos = repos;
 }
Exemple #9
0
 public HomeController(IGlossaryRepository glossaryRepository)
 {
     _glossaryRepository = glossaryRepository;
 }