public GlossaryViewModel(IGlossaryRepository glossaryRepository) { if (glossaryRepository.Items == null) { glossaryRepository.Items = new List <Glossary>(); } GlossaryRepository = glossaryRepository; _items = new ObservableCollection <Glossary>(GlossaryRepository.Items); Items = _items; GenerateCommands(); }
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); }
public GlossaryService(IGlossaryRepository glossaryRepository, ITranslationSubstringRepository translationSubstringRepository) { this._glossaryRepository = glossaryRepository; this._stringsRepository = translationSubstringRepository; }
public GlossaryController(IGlossaryRepository glossaryRepository, IMapper mapper) { _glossaryRepository = glossaryRepository; _mapper = mapper; }
public GlossaryService(IGlossaryRepository repository) { this._repository = repository; }
public GlossaryItemsService(IGlossaryRepository glossaryRepository, IUnitOfWork unitOfWork, IMapper mapper) { _glossaryRepository = glossaryRepository; _unitOfWork = unitOfWork; _mapper = mapper; }
// Dependency Injection public GlossaryController(IGlossaryRepository repos) { _repos = repos; }
public HomeController(IGlossaryRepository glossaryRepository) { _glossaryRepository = glossaryRepository; }