Ejemplo n.º 1
0
        public void TestMethod1()
        {
            var service = new BisService("http://api2.bisoffice.kloon.net/web/");

            service.Login("rRZs9cMSPXputzMF6QF2zeWP");
            var test = service.Machines.GetAll();
        }
Ejemplo n.º 2
0
        public void TestMethodDelete()
        {
            var service = new BisService("http://api2.bisoffice.kloon.net/web/");

            service.Login("rRZs9cMSPXputzMF6QF2zeWP___");
            var test = service.Machines.Delete(35);
        }
Ejemplo n.º 3
0
        public void TestMethodUpdate()
        {
            try
            {
                var service = new BisService("http://api2.bisoffice.kloon.net/web/");
                service.Login("rRZs9cMSPXputzMF6QF2zeWP");
                var worker = new Worker
                {
                    id            = 38,
                    supervisor_id = 2016,
                    nfc_code      = "defecfa2dfc30a93dda0cab110c66ac6",
                    personal_code = "nam-personal_code",
                    first_name    = "nam-first_name 1",
                    last_name     = "nam-last_name 1",
                    price         = 20,
                    address       = "Nam-address",
                    phone         = "nam-phone",
                    birthday      = DateTime.Now
                };

                var test = service.Workers.Update(worker);
            }
            catch (Exception ex)
            {
                var a = ex.ToString();
                var b = a;
            }
        }
Ejemplo n.º 4
0
 public void TestMethod1()
 {
     try
     {
         var service = new BisService("http://api2.bisoffice.kloon.net/web/");
         service.Login("rRZs9cMSPXputzMF6QF2zeWP");
         var test = service.Workers.GetAll();
     }
     catch (Exception ex)
     {
         var a = ex.ToString();
         var b = a;
     }
 }
Ejemplo n.º 5
0
        public void TestMethodInsert()
        {
            var service = new BisService("http://api2.bisoffice.kloon.net/web/");

            service.Login("rRZs9cMSPXputzMF6QF2zeWP");
            var machine = new Machine
            {
                nfc_code     = "ab3d4bba615e742684c46b4701fdd5b8",
                machine_code = "M01",
                name         = "Machine 1",
                description  = "Machine 1 description"
            };

            service.Machines.Insert(machine);
        }
Ejemplo n.º 6
0
        public void TestMethodUpdate()
        {
            var service = new BisService("http://api2.bisoffice.kloon.net/web/");

            service.Login("rRZs9cMSPXputzMF6QF2zeWP");
            var machine = new Machine
            {
                id           = 24,
                nfc_code     = "ab3d4bba615e742684c46b4701fdd5b8",
                machine_code = "M01",
                name         = "nam-name",
                description  = "nam-description"
            };

            var test = service.Machines.Update(machine);
        }
Ejemplo n.º 7
0
        public void TestMethodInsert()
        {
            var service = new BisService("http://api2.bisoffice.kloon.net/web/");

            service.Login("rRZs9cMSPXputzMF6QF2zeWP");
            var worker = new Worker
            {
                supervisor_id = 2016,
                nfc_code      = "defecfa2dfc30a93dda0cab110c66ac6",
                personal_code = "nam-personal_code",
                first_name    = "nam-first_name",
                last_name     = "nam-last_name",
                price         = 20,
                address       = "Nam-address",
                phone         = "nam-phone",
                birthday      = DateTime.Now
            };

            service.Workers.Insert(worker);
        }