예제 #1
0
        public void BuildShouldReturnCoreWithInfosButEmpty()
        {
            CoreBuilder coreBuilder = new CoreBuilder(new Core());

            coreBuilder.BuildCore();

            Assert.That(coreBuilder.Info.AppCultureInfo, Is.Null);
            Assert.That(coreBuilder.Info.MainViewModel, Is.Null);
            Assert.That(coreBuilder.Info.MainWindow, Is.Null);
            Assert.That(coreBuilder.Info.LoginHandler, Is.Null);
            Assert.That(coreBuilder.Info.ThemeData, Is.Null);
        }
예제 #2
0
        public void UseUIInitializesUI()
        {
            CoreBuilder coreBuilder = new CoreBuilder(new Core());

            coreBuilder.UseUI <MockUIBuilder>();
            coreBuilder.BuildCore();

            Assert.That(coreBuilder.Info.AppCultureInfo, Is.Null);
            Assert.That(coreBuilder.Info.MainViewModel, Is.Null);
            Assert.That(coreBuilder.Info.MainWindow, Is.Null);
            Assert.That(coreBuilder.Info.LoginHandler, Is.Null);
            Assert.That(coreBuilder.Info.ThemeData, Is.Not.Null);
        }
예제 #3
0
        public void MainWindowInitializesMainWindow()
        {
            CoreBuilder coreBuilder = new CoreBuilder(new Core());

            coreBuilder.MainWindow <Window>();
            coreBuilder.BuildCore();

            Assert.That(coreBuilder.Info.AppCultureInfo, Is.Null);
            Assert.That(coreBuilder.Info.MainViewModel, Is.Null);
            Assert.That(coreBuilder.Info.MainWindow, Is.Not.Null);
            Assert.That(coreBuilder.Info.MainWindow, Is.EqualTo(typeof(Window)));
            Assert.That(coreBuilder.Info.LoginHandler, Is.Null);
            Assert.That(coreBuilder.Info.ThemeData, Is.Null);
        }
예제 #4
0
        public void UseCultureInitializesCultureInfo()
        {
            CoreBuilder coreBuilder = new CoreBuilder(new Core());

            coreBuilder.UseCulture <MockCultureBuilder>();
            coreBuilder.BuildCore();

            Assert.That(coreBuilder.Info.AppCultureInfo, Is.Not.Null);
            Assert.That(coreBuilder.Info.AppCultureInfo.LCID, Is.EqualTo(new CultureInfo("de-de").LCID));
            Assert.That(coreBuilder.Info.MainViewModel, Is.Null);
            Assert.That(coreBuilder.Info.MainWindow, Is.Null);
            Assert.That(coreBuilder.Info.LoginHandler, Is.Null);
            Assert.That(coreBuilder.Info.ThemeData, Is.Null);
        }