public async Task CreateMainWindowAsync_CreateMainWindow_Correct()
        {
            var initTrigger = false;
            var showTrigger = false;

            A.CallTo(() => _settingsService.GetByUserIdAsync(A <int> .Ignored)).Returns(new SettingsModel {
                Language = Language.English
            });
            A.CallTo(() => _authorizationService.GetCurrentUser()).Returns(new UserModel {
                Id = 10
            });

            var mainWindow = A.Fake <MainWindow>();

            A.CallTo(() => mainWindow.InitAsync()).Invokes(() => initTrigger  = true);
            A.CallTo(() => mainWindow.ShowWindow()).Invokes(() => showTrigger = true);

            A.CallTo(() => _windowFactory.Create <MainWindow>())
            .Returns(mainWindow);

            await _windowService.CreateMainWindowAsync();

            A.CallTo(() => _settingsHelper.SetLanguage(A <SettingsModel> .Ignored)).MustHaveHappened();
            A.CallTo(() => _settingsHelper.SetTheme(A <SettingsModel> .Ignored)).MustHaveHappened();
            Assert.IsTrue(initTrigger);
            Assert.IsTrue(showTrigger);
        }