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); } } } }
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); } }
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); } }
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); } } }