public void Setup() { _osHelper = Substitute.For <IOsHelper>(); _uacAssistant = Substitute.For <IUacAssistant>(); var applicationNameProvider = new ApplicationNameProvider(EditionName); _interactionRequest = new UnitTestInteractionRequest(); _storeLicenseForAllUsersWindowViewModel = new StoreLicenseForAllUsersWindowViewModel(applicationNameProvider, _osHelper, _uacAssistant, _interactionRequest, new DesignTimeTranslationUpdater()); var interaction = new StoreLicenseForAllUsersInteraction("", ""); _interactionHelper = new InteractionHelper <StoreLicenseForAllUsersInteraction>(_storeLicenseForAllUsersWindowViewModel, interaction); }
public void Setup() { _osHelper = Substitute.For <IOsHelper>(); _uacAssistant = Substitute.For <IUacAssistant>(); var applicationNameProvider = new ApplicationNameProvider(ProductName); _interactionInvoker = Substitute.For <IInteractionInvoker>(); _storeLicenseForAllUsersWindowViewModel = new StoreLicenseForAllUsersWindowViewModel(applicationNameProvider, _osHelper, _uacAssistant, _interactionInvoker, new StoreLicenseForAllUsersWindowTranslation()); var interaction = new StoreLicenseForAllUsersInteraction("", ""); _interactionHelper = new InteractionHelper <StoreLicenseForAllUsersInteraction>(_storeLicenseForAllUsersWindowViewModel, interaction); }
public void Setup() { _osHelper = Substitute.For <IOsHelper>(); _uacAssistant = Substitute.For <IUacAssistant>(); var applicationNameProvider = new ApplicationNameProvider(ProductName); _interactionInvoker = Substitute.For <IInteractionInvoker>(); var translator = Substitute.For <ITranslator>(); translator.GetTranslation("StoreLicenseForAllUsersWindowViewModel", "StoreForAllUsersSuccessful").Returns(SuccessfulText); translator.GetTranslation("StoreLicenseForAllUsersWindowViewModel", "StoreForAllUsersFailed").Returns(FailedText); _storeLicenseForAllUsersWindowViewModel = new StoreLicenseForAllUsersWindowViewModel(applicationNameProvider, _osHelper, _uacAssistant, _interactionInvoker, translator); var interaction = new StoreLicenseForAllUsersInteraction(); _interactionHelper = new InteractionHelper <StoreLicenseForAllUsersInteraction>(_storeLicenseForAllUsersWindowViewModel, interaction); }
public StoreLicenseForAllUsersWindow(StoreLicenseForAllUsersWindowViewModel viewModel) { DataContext = viewModel; InitializeComponent(); }
public StoreLicenseForAllUsersWindow(StoreLicenseForAllUsersWindowViewModel viewModel, ITranslator translator) { DataContext = viewModel; InitializeComponent(); translator.Translate(this); }