예제 #1
0
 public void RunImmediateBatchCreationTest()
 {
     using (var logic = new MessagesModuleLogic(new MessageContext(Settings.MessageContextConnectionString))) {
         using (var sqlLogic = new SqlLogic(new SqlConnectionFactory(Settings.SqlConnectionString))) {
             using (var Bcm = BatchCreationManager.NewInstance(new DateTime(2016, 9, 3), new DateTime(2016, 9, 5), sqlLogic, logic)) {
                 //TASK_PROTOTYPE.RunImmediateBatchCreation(logic.Get<tblMessageSchedule>(1), 1, sqlLogic, logic);
             }
         }
     }
 }
        public void CollectTest()
        {
            using (var logic = new MessagesModuleLogic(new MessageContext(Settings.MessageContextConnectionString))) {
                using (var sqlLogic = new SqlLogic(new SqlConnectionFactory(Settings.SqlConnectionString))) {
                    using (var Bcm = BatchCreationManager.NewInstance(new DateTime(2016, 9, 3), new DateTime(2016, 9, 5), sqlLogic, logic)) {
                        Bcm.DontMakeTimeStamp();
                        var sced = logic.Get <tblMessageSchedule>(1);

                        var Collector = new MessageDataCollector(Bcm);
                        var result    = Collector.Collect(sced);
                    }
                }
            }
        }