public void InsertInstallerLogTest()
        {
            var repository = new CustomerRepositoryHelper();
            int?id         = 0;

            Console.WriteLine(repository.InsertInstallerLog("result", "license", "type", "1.1.1.1", "step", "message", out id));
            Console.WriteLine(id);
        }
        public void InsertCustomerAlert()
        {
            var repository = new CustomerRepositoryHelper();
            int?id         = null;

            Console.WriteLine(repository.InsertCustomerAlert("1234", 1, "message", "severity", out id));
            Console.WriteLine(id);
        }
        public void ActivateEmailTest()
        {
            var repository = new CustomerRepositoryHelper();
            var customer   = new CustomerData
            {
                LicenseId = "123"
            };

            Console.WriteLine(repository.ActivateEmail(customer));
        }
        public void InsertChildTest()
        {
            var repository = new CustomerRepositoryHelper();
            var childData  = new ChildData
            {
                LicenseId = "1234",
                Name      = "Roman",
                Avatar    = "eagle",
                Obs       = "",
                Category  = "category"
            };

            Console.WriteLine(repository.InsertChild(childData));
        }
        public void InsertExceptionLog()
        {
            var repository = new CustomerRepositoryHelper();
            var exc        = new SPCServices.ExceptionHandling.ExceptionObj
            {
                LicenseId   = "aasdasd",
                Environment = "Environment",
                OsEdition   = "OsEdition",
                OsName      = "OsName",
                OSBits      = "OsBits"
            };

            Console.WriteLine(repository.InsertExceptionLog(exc));
        }
        public void UpdateChild()
        {
            var repository = new CustomerRepositoryHelper();
            var childData  = new ChildData
            {
                Id        = 1,
                LicenseId = "12345",
                Name      = "Sergei1",
                Avatar    = "oak1",
                Obs       = "1",
                Category  = "category1"
            };

            Console.WriteLine(repository.UpdateChild(childData));
        }
        public void InsertIPN()
        {
            var repository = new CustomerRepositoryHelper();
            var properties = new NameValueCollection
            {
                { "custom", "1234|product" },
                { "receiver_email", "receiver_email" },
                { "receiver_id", "receiver_id" },
                { "residence_country", "residence_country" },
                { "test_ipn", "test_ipn" },
                { "transaction_subject", "transaction_subject" },
            };

            Console.WriteLine(repository.InsertIPN(properties, "call"));
        }
        public void InsertDeviceTest()
        {
            var repository = new CustomerRepositoryHelper();
            var device     = new ChildDevices
            {
                LicenseId           = "123",
                Tbpid               = "432",
                ChildId             = 2,
                Name                = "Name",
                Avatar              = "avatar",
                OnlineTimeFrames    = "otf",
                OnlineWebTimeFrames = "owtf"
            };

            Console.WriteLine(repository.InsertDevice(device));
        }
        public void UpdateCustomer()
        {
            var repository = new CustomerRepositoryHelper();
            var customer   = new CustomerData
            {
                LicenseId       = "123",
                FirstName       = "Sergei1",
                LastName        = "oak2",
                DateOfBirth     = DateTime.Now.Date.ToString("yyyyMMdd"),
                Email           = "[email protected]",
                IsEmailVerified = false,
                Timezone        = "UTC4",
                HashPass        = "******",
                PaymentProfile  = "test6",
                Expires         = DateTime.Now,
                Obs             = "7",
                Status          = "8",
                Type            = "9"
            };

            Console.WriteLine(repository.UpdateCustomer(customer));
        }
        public void InsertCustomerTest()
        {
            var customer = new CustomerData
            {
                LicenseId       = "123",
                FirstName       = "Sergei",
                LastName        = "oak",
                DateOfBirth     = DateTime.Now.Date.ToString("yyyyMMdd"),
                Email           = "*****@*****.**",
                IsEmailVerified = false,
                Timezone        = "UTC",
                HashPass        = "******",
                PaymentProfile  = "test",
                Expires         = DateTime.Now,
                Obs             = "",
                Status          = "",
                Type            = ""
            };
            var    repository = new CustomerRepositoryHelper();
            string licenseId;

            Console.WriteLine(repository.InsertCustomer(customer, out licenseId));
        }
        public void DeleteAnalyticsInstallerTest()
        {
            var repository = new CustomerRepositoryHelper();

            Console.WriteLine(repository.DeleteAnalyticsInstaller("license"));
        }
 public void GetTimeinWebTest()
 {
     var repository = new CustomerRepositoryHelper();
     var res        = repository.GetTimeinWeb("12434", null, 1, "TODAY");
 }
        public void DeleteCustomersAlertsTest()
        {
            var repository = new CustomerRepositoryHelper();

            Console.WriteLine(repository.DeleteCustomersAlerts("1234", 1));
        }
        public void DeleteDevice()
        {
            var repository = new CustomerRepositoryHelper();

            Console.WriteLine(repository.DeleteDevice("123", 4));
        }
 public void GetLastGPSLocationTest()
 {
     var repository = new CustomerRepositoryHelper();
     var res        = repository.GetLastGPSLocation("12434", null, 1);
 }
 public void GetAllGPSLocations()
 {
     var repository = new CustomerRepositoryHelper();
     var res        = repository.GetAllGPSLocations("12434", 2, DateTime.UtcNow.AddMinutes(-15), DateTime.UtcNow.AddMinutes(15));
 }
 public void GetAllCallHistory()
 {
     var repository = new CustomerRepositoryHelper();
     var res        = repository.GetAllCallHistory("12434", 1, DateTime.UtcNow.AddMinutes(-15), DateTime.UtcNow.AddMinutes(15));
 }
 public void GetAllDevices1()
 {
     var repository = new CustomerRepositoryHelper();
     var res        = repository.GetAllDevices("1234");
 }
 public void GetAllRDCTest()
 {
     var repository = new CustomerRepositoryHelper();
     var res        = repository.GetAllRDC("1243", 2, DateTime.UtcNow.AddMinutes(-15), DateTime.UtcNow.AddMinutes(15));
 }
        public void DeleteAnalyticsExceptionsTest()
        {
            var repository = new CustomerRepositoryHelper();

            Console.WriteLine(repository.DeleteAnalyticsExceptions("aasdasd"));
        }
 public void GetDevice()
 {
     var repository = new CustomerRepositoryHelper();
     var res        = repository.GetDevice(2);
 }
 public void GetAllLogssTest()
 {
     var repository = new CustomerRepositoryHelper();
     var res        = repository.GetAllLogs("4321");
 }
 public void GetChild()
 {
     var repository = new CustomerRepositoryHelper();
     var res        = repository.GetChild(2);
 }
        public void GetNumDevices()
        {
            var repository = new CustomerRepositoryHelper();

            Console.WriteLine(repository.GetNumDevices("12334"));
        }
        public void customerslogs_Emails()
        {
            var repository = new CustomerRepositoryHelper();

            Console.WriteLine(repository.customerslogs_Emails("from", "to", "body", true));
        }
        public void InsertLog()
        {
            var repository = new CustomerRepositoryHelper();

            Console.WriteLine(repository.InsertLog("4321", "asd", "description"));
        }
 public void GetAllCustomerAlerts()
 {
     var repository = new CustomerRepositoryHelper();
     var res        = repository.GetAllCustomerAlerts("1234");
 }
        public void GetDeviceTest()
        {
            var repository = new CustomerRepositoryHelper();

            Console.WriteLine(repository.GetDevice("1234", 2));
        }
        public void DeleteCustomerTest()
        {
            var repository = new CustomerRepositoryHelper();

            Console.WriteLine(repository.DeleteCustomer("123"));
        }
        public void GetNumChildsTest()
        {
            var repository = new CustomerRepositoryHelper();

            Console.WriteLine(repository.GetNumChilds("1234"));
        }