public MainWindow(DictionaryController controller) { //Setting the dictionaryController this.controller = controller; SettingBasics(); }
void Awake() { if (Instance == null) { Instance = this; } }
public MainWindow() { //Setting the dictionaryController this.controller = new DictionaryController(); SettingBasics(); }
public Dictionary() { InitializeComponent(); controller = new DictionaryController(); lBoxLetters.DataSource = controller.ImportAlphabet(); UpdateRoutine(); }
public frmMyWordPools(User currentUser) { InitializeComponent(); user = currentUser; _wordPoolController = new WordPoolController(); _wordPoolDetailController = new WordPoolDetailController(); _dictionaryController = new DictionaryController(); }
public DisplayWords(DictionaryController controller) { this.controller = controller; InitializeComponent(); pickLanguage.ItemsSource = controller.GetLanguages(); words.ItemsSource = controller.GetWords(); }
public frmAddWordToPool(User currentUser, WordPool currentPool) { InitializeComponent(); _dictionaryController = new DictionaryController(); _wordPoolController = new WordPoolController(); _wordPoolDetailController = new WordPoolDetailController(); user = currentUser; wordPool = currentPool; }
public frmAdminChangeWord(Dictionary dictionary, Form frm) { InitializeComponent(); txtEnglish.Text = dictionary.English; txtTurkish.Text = dictionary.Turkish; chkActive.Checked = dictionary.IsActive; updatedDictionary = dictionary; _dictionaryController = new DictionaryController(); frmWordList = (frmAdminWordList)frm; }
public void Setup() { _dictionaryConfiguration = Substitute.For <IOptions <Dictionary> >(); _dictionaryConfiguration.Value.Returns(new Dictionary() { pageSize = 100, path = " " }); _wordsRepository = Substitute.For <IWordsRepository>(); _dictionaryService = Substitute.For <IDictionaryService>(); _fileRepository = Substitute.For <IFileRepository>(); _dictionaryController = new DictionaryController(_dictionaryConfiguration, _wordsRepository, _dictionaryService); }
public void CompareDictionary_word_in_dictionary__formated_word_returned() { //Arrange DictionaryController dict = new DictionaryController(); dict.Dict.Add("Проверка"); string accept = "Проверка"; string expected = " <b><i>Проверка</i></b> "; //Act string actual = dict.CompareDictionary(accept); //Result Assert.AreEqual(expected, actual); }
public void Setup() { if (mapper == null) { var mappingConfig = new MapperConfiguration(mc => { mc.AddProfile(new AutomapperProfile()); }); IMapper mapper = mappingConfig.CreateMapper(); this.mapper = mapper; } var dbContextOptions = new DbContextOptionsBuilder <DatabaseContext>() .UseInMemoryDatabase(Guid.NewGuid().ToString()) .Options; db = new DatabaseContext(dbContextOptions); dictionaryService = new DictionaryService(mapper, db); dictionaryController = new DictionaryController(dictionaryService); Seed(db); }
public frmAdminWordList() { InitializeComponent(); _dictionaryController = new DictionaryController(); dictionary = new Dictionary(); }
public void SetUp() { dictionaryManager = new DictionaryManager(new ApiClientFactory(new HttpClient(), new Uri("http://api.wikiled.com"))); instance = CreateDictionaryController(); }
public frmAdminAddNewWord(Form frm) { InitializeComponent(); _dictionaryController = new DictionaryController(); frmWordList = (frmAdminWordList)frm; }
public frmWordStatistics() { InitializeComponent(); _dictionaryController = new DictionaryController(); }
public void SetUp() { mockDictionaryManager = new Mock <IDictionaryManager>(); cacheHelper = new CacheHelper(); instance = CreateDictionaryController(); }