public void UserCollectionRun_Test()
        {
           
            TDHSDPAUECategory ueCategory = new TDHSDPAUECategory();
            TDSimUser user1;
            user1 = MockDPAUser.CreatTDSimUser_PS();
            user1.HSDPAMaxDataSpeed = 100;
            ((TDTerminal)(user1.TrafficUser.Terminal.GetNetWorkTerminal(NetWorkType.TDSCDMA))).TDHsdpaUeCategory = ueCategory;
            ((UnionPsService)(user1.TrafficUser.Service)).DlMaxThroughputDemand = 1000f;
            user1.Ecio = 1.0f;  
            TDSimUser user2;
            user2 = MockDPAUser.CreatTDSimUser_PS();
            user2.HSDPAMaxDataSpeed = 100;
            user2.Ecio = 1.0f;
            List<TDSimUser> userCollection = new List<TDSimUser>();
            userCollection.Add(user1);
            userCollection.Add(user2);

            initialUserCollection.Run(userCollection);

            Assert.AreEqual(userCollection[0].HSDPAMaxDataSpeed, 5000f);
            Assert.AreEqual(userCollection[1].HSDPAMaxDataSpeed, 0d);
        }
Beispiel #2
0
 public TdHSDPAUECategoryDesc(TDHSDPAUEcategoryManagement hsdpaUeCategoryMgt, TDHSDPAUECategory entity, List<string> excludeNames)
     : this(hsdpaUeCategoryMgt, entity)
 {
     this.m_exludeNames = excludeNames;
 }
Beispiel #3
0
 public TdHSDPAUECategoryDesc(TDHSDPAUEcategoryManagement hsdpaUeCategoryMgt, TDHSDPAUECategory entity)
 {
     this.m_Entity = entity;
     this.m_TDhsdpaUeCategoryMgt = hsdpaUeCategoryMgt;
 }