public A_Task_Rd(A_Station station, A_Cmd_Coll_Rd cmd)
     : base("NoName", cmd, new CycleTaskStrategy(new TimeSpan(0, 0, 0, 5, 0)))
 {
     if (this.m_BeforeExecuteTaskDelegate != null)
     {
     }
 }
 public void setup()
 {
     stations = new A_StationsCollection();
     st1      = new A_Station("st1", 1);
     st2      = new A_Station("st2", 1);
     st1_too  = new A_Station("st1", 1);
 }
        public void change_station_name()
        {
            clear_stations();
            stations.Add(st1);
            stations.Add(st2);



            st2.StationName = "    st2_c   ";
            Assert.AreEqual("st2_c", st2.StationName);
            Assert.AreEqual(st2.Key, st2.StationName);



            A_Station st = stations.GetItem(0) as A_Station;

            st.StationName = "st1_changed";
            Assert.AreEqual("st1_changed", st.StationName);
            st.StationName = "st2";
        }
 public int Add(A_Station station)
 {
     return(InternalAdd(station));
 }