public void CreateThrowsApplicationException()
        {
            PWCore.Create();

            Assert.That(PWCore.Create,
                        Throws.Exception.TypeOf(typeof(ApplicationException)));
        }
        private async void Application_Startup(object sender, StartupEventArgs e)
        {
            if (!Debugger.IsAttached)
            {
                var updater = new AppUpdater();
                await updater.UpdateApp();
            }

            PWCore.Create();
            PWCore.CurrentCore
            .RegisterTypes()
            .CreateCoreBuilder()

            .UseCulture <CultureBuilder>()
            .UseLogin <LoginHandler>()
            .UseUI <UIBuilder>()

            .MainWindow <MainWindow>()
            .MainViewModel <MainViewModel>()

            .BuildCore()
            .RunWpf();
        }
        public void CreateTest()
        {
            PWCore.Create();

            Assert.That(PWCore.CurrentCore, Is.Not.Null);
        }