コード例 #1
0
 void VerifyDomainsShouldExist(Guid guidAccountId, uint?uintCount)
 {
     IPlayReadyDomain[] domains = DomainManagement.FindMultipleDomains(guidAccountId);
     if (domains == null)
     {
         TestLogger.LogMessage("Domains not found!!!");
         TestActionFinished(false, null);
     }
     else
     {
         if (!uintCount.HasValue)
         {
             TestActionFinished(true, null);
         }
         else
         {
             if (domains.Length == uintCount.Value)
             {
                 TestLogger.LogMessage("Domain count matched!!!");
                 TestActionFinished(true, null);
             }
             else
             {
                 TestLogger.LogMessage("Domain count not matching!!!");
                 TestActionFinished(false, null);
             }
         }
     }
 }
コード例 #2
0
 void VerifyDomainsShouldNotExist(Guid guidAccountId)
 {
     IPlayReadyDomain[] domains = DomainManagement.FindMultipleDomains(guidAccountId);
     if (domains == null)
     {
         TestLogger.LogMessage("Domains not found!!!");
         TestActionFinished(true, null);
     }
     else
     {
         TestLogger.LogMessage("Domains found. Count = " + domains.Length);
         TestActionFinished(false, null);
     }
 }
コード例 #3
0
        void VerifyDomainShouldNotExist(Guid guidAccountId)
        {
            PlayReadyDomain domain = DomainManagement.FindSingleDomain(guidAccountId);

            if (domain == null)
            {
                TestLogger.LogMessage("Domain not found!!!");
                TestActionFinished(true, null);
            }
            else
            {
                TestLogger.LogMessage("Domain found!!!");
                TestActionFinished(false, null);
            }
        }
コード例 #4
0
        void VerifyDomainShouldExist(Guid guidAccountId, Guid guidServiceId)
        {
            PlayReadyDomain domain = DomainManagement.FindSingleDomain(guidAccountId);

            if (domain == null)
            {
                TestLogger.LogMessage("Domain not found!!!");
                TestActionFinished(false, null);
            }
            else
            {
                if (domain.ServiceId == guidServiceId)
                {
                    TestLogger.LogMessage("Matching domain found in license store!!!");
                    TestActionFinished(true, null);
                }
                else
                {
                    TestLogger.LogMessage("Matching domain not found in license store!!!");
                    TestActionFinished(false, null);
                }
            }
        }