/// <summary>
        /// Remove an event result from queues.
        /// </summary>
        /// <param name="eventName">Event to remove.</param>
        /// <returns>True if event was found.</returns>
        public bool DequeueEvent(string eventName)
        {
            var changed = true;

            switch (eventName)
            {
            case AdaptiveEvents.ChooseProperty: ChooseProperties.Dequeue(); break;

            case AdaptiveEvents.ChooseEntity: ChooseEntities.Dequeue(); break;

            case AdaptiveEvents.ClearProperty: ClearProperties.Dequeue(); break;

            case AdaptiveEvents.AssignEntity: AssignEntities.Dequeue(); break;

            case AdaptiveEvents.EndOfActions: changed = false; break;

            default:
                changed = false;
                break;
            }

            return(changed);
        }
Пример #2
0
 public MyTestController()
 {
     _context = new AssignEntities();
 }