Example #1
0
        internal ClientLicense CreateTestClientLicense(Service service)
        {
            ClientLicense cl = new ClientLicense();

            cl.ServicesKeys = service.GetClientServiceKeyPair();
            cl.Product = new Product();
            cl.Product.Name = "Test Product";

            cl.LicenseSets = new NotifyList<LicenseSet>();
            LicenseSet ls = new LicenseSet();
            ls.LicenseId = int.MaxValue;
            ls.LicenseSetId = int.MaxValue;
            ls.Name = "Test Product License Set";
            ls.MaxUsers = 2;
            ls.SupportedLicenseTypes = LicenseKeyTypeFlag.MultiUser;

            cl.LicenseSets.Add(ls);

            return cl;
        }