Пример #1
0
        public void SetUp()
        {
            Trace.WriteLine("Loading.");

            Business.Configuration.Load();

            Trace.WriteLine("Setting up database.");

            this.databaseName = Guid.NewGuid().ToString();

            DatabaseHelper.CreateDatabase(this.databaseName, "Core");

            this.path = Business.Configuration.ConfigurationFilePath + "DataFiles\\";

            string script = DatabaseHelper.LoadSqlFile(this.path + "coretestdata.sql");

            DatabaseHelper.ExecuteSqlScript(script, this.databaseName);

            this.packet = EventPacket.NewEventPacket(this.connectionStringStub + "Initial Catalog=" + this.databaseName, 600);
        }
Пример #2
0
 public virtual EventPacket GetNewEventPacket()
 {
     return(EventPacket.NewEventPacket(Configuration.CoreConnectionString, Configuration.ConnectionTimeout));
 }