Exemplo n.º 1
0
        public void OnetimeSetup()
        {
            TestDbInit.SqlServer(BaseTest.MsSqlConnectionString);
            var installationService = new InstallationService(TestDbInit.DbSettings, DependencyResolver.Resolve <ILocalFileProvider>());

            installationService.Install();
            installationService.FillRequiredSeedData("*****@*****.**", "@#$%^&*", "localhost", "Test Store");
        }
Exemplo n.º 2
0
        public void OnetimeSetup()
        {
            TestDbInit.MySql(BaseTest.MySqlConnectionString);
            var installationService = new InstallationService(TestDbInit.DbSettings, DependencyResolver.Resolve <ILocalFileProvider>());

            installationService.Install();
            installationService.FillRequiredSeedData("*****@*****.**", "@#$%^&*", "localhost", "Test Store");
            //set the current store to 1
            ApplicationEngine.CurrentHttpContext.SetCurrentStore(new Store()
            {
                Id = 1
            });
        }