public void WithQuotaTest()
        {
            int    max    = 100;
            string ticket = base.GetTestTicket();

            WebAccountService.TransitAccountQuota t_instance = new WebAccountService.TransitAccountQuota();
            t_instance.AccountId      = GetTestAccountId();
            t_instance.DataObjectName = "AccountWebsite";
            t_instance.Limit          = 6;
            t_instance.Id             = EndPoint.CreateOrUpdateAccountQuota(GetAdminTicket(), t_instance);
            Console.WriteLine("Quota id: {0}", t_instance.Id);

            for (int i = 0; i < t_instance.Limit; i++)
            {
                WebAccountService.TransitAccountWebsite website = new WebAccountService.TransitAccountWebsite();
                website.Name = GetNewString();
                website.Url  = GetNewUri();
                int id = EndPoint.CreateOrUpdateAccountWebsite(ticket, website);
                Console.WriteLine("Created website: {0}:{1}", website.Url, id);
            }

            try
            {
                WebAccountService.TransitAccountWebsite website = new WebAccountService.TransitAccountWebsite();
                website.Name = GetNewString();
                website.Url  = GetNewUri();
                EndPoint.CreateOrUpdateAccountWebsite(ticket, website);
                Assert.IsTrue(false, "Missing exception at quota limit.");
            }
            catch (Exception ex)
            {
                Console.WriteLine("Exception at quota limit: {0}", ex.Message);
            }

            EndPoint.DeleteAccountQuota(GetAdminTicket(), t_instance.Id);

            for (int i = t_instance.Limit; i < max; i++)
            {
                WebAccountService.TransitAccountWebsite website = new WebAccountService.TransitAccountWebsite();
                website.Name = GetNewString();
                website.Url  = GetNewUri();
                int id = EndPoint.CreateOrUpdateAccountWebsite(ticket, website);
                Console.WriteLine("Created website: {0}:{1}", website.Url, id);
            }
        }
        public void FindRefererAccountsTest()
        {
            WebAccountServiceTests.AccountWebsiteTest websitetest = new WebAccountServiceTests.AccountWebsiteTest();
            websitetest.SetUp();
            WebAccountService.TransitAccountWebsite t_website = websitetest.GetTransitInstance();
            t_website.AccountId = _user.id;
            int website_id = websitetest.Create(_user.ticket, t_website);

            try
            {
                WebStatsService.TransitAccount[] t_accounts = EndPoint.FindRefererAccounts(_user.ticket, t_website.Url, null);
                Assert.IsNotNull(t_accounts);
                Console.WriteLine("Accounts: {0}", t_accounts.Length);
                Assert.AreEqual(1, t_accounts.Length);
                Assert.AreEqual(t_accounts[0].Id, _user.id);
            }
            finally
            {
                websitetest.Delete(_user.ticket, website_id);
            }
        }