Exemplo n.º 1
0
        public void DoTearDown()
        {
            database.Dispose();
            database = null;

            website.Dispose();
            website = null;
        }
        public void Configuration(IAppBuilder appBuilder)
        {
            WebApiSetup webApiSetup = WebApiSetup.Initialize(appBuilder);

            OathAuthorizationSetup.Initialize(appBuilder);
            appBuilder.UseNancy();
            webApiSetup.Configuration.EnsureInitialized();
        }
Exemplo n.º 3
0
        public void DoSetup()
        {
            database = new ScenarioSetup.TestDatabase("MagiQL-Tests", "MagiQL");

            var thisAssembly = typeof(TestSetup).Assembly;

            var schemaSetup = new SchemaSetup(thisAssembly);

            schemaSetup.BuildSchema();

            var dataSetup = new DataSetup(thisAssembly);

            dataSetup.SeedData();

            var columnSetup = new ColumnSetup(thisAssembly);

            columnSetup.CreateColumns();

            website = new WebApiSetup();
            website.Start();
        }