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); }
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); }
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); }
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); }