public void RegisterAndSetTranslation <T>(ITranslatableViewModel <T> model) where T : ITranslatable, new() { lock (this) { UpdateTranslation(_translationFactory, model); _threadLookup.Add(tf => UpdateTranslation(tf, model), Thread.CurrentThread); } }
public void RegisterAndSetTranslation <T>(ITranslatableViewModel <T> model) where T : ITranslatable, new() { model.Translation = Activator.CreateInstance <T>(); }
private void UpdateTranslation <T>(ITranslationFactory translationFactory, ITranslatableViewModel <T> viewModel) where T : ITranslatable, new() { viewModel.Translation = translationFactory.UpdateOrCreateTranslation(viewModel.Translation); }
public void Setup() { _translationUpdater = Substitute.For <ITranslationUpdater>(); _translatableViewModel = BuildViewModel(_translationUpdater); }