public void DeleteTestServiceProduct() { ServiceProduct testProduct = _serviceProductsRepository.GetProduct(int.MaxValue); if (testProduct != null) { List <ServiceLicenseKey> keys = _serviceProductsRepository.GetServiceLicenseKeysByLicenseSet(int.MaxValue); foreach (ServiceLicenseKey k in keys) { _serviceProductsRepository.DeleteLicenseActivationsByKeyId(k.LicenseKeyId); } foreach (ServiceLicenseKey k in keys) { _activationLogRepoistory.DeleteActivationLogByKey(k.Key); } _serviceProductsRepository.DeleteLicenseKeyByLicenseSetId(int.MaxValue); _serviceProductsRepository.DeleteLicenseSetId(int.MaxValue); _serviceProductsRepository.DeleteLicenseId(int.MaxValue); } }