Exemplo n.º 1
0
        private async void button6_Click(object sender, EventArgs e)
        {
            var client = new AdminService.AdminServiceClient();
            var keks   = await client.GetAllUserAsync();

            //var lol = 0;
        }
Exemplo n.º 2
0
        private async void button7_Click(object sender, EventArgs e)
        {
            var client = new AdminService.AdminServiceClient();
            var keks   = await client.GetAllUserAsync();

            var user = keks[0];

            user.firstName = "TEST";
            await client.EditUserAsync(user);
        }
Exemplo n.º 3
0
        private async void button3_Click(object sender, EventArgs e)
        {
            var client = new AdminService.AdminServiceClient();
            var task   = await client.GetAllCharityAsync();

            var charity = task[0];

            charity.name = "Arise";

            await client.EditCharityAsync(charity);
        }
Exemplo n.º 4
0
        private async void button5_Click(object sender, EventArgs e)
        {
            var client = new AdminService.AdminServiceClient();
            var list   = new List <Volunteer>();
            var kek    = new Volunteer();

            kek.firstName   = "Ivan";
            kek.lastName    = "Petrov";
            kek.countryCode = "RUS";
            kek.gender      = "Male";
            list.Add(kek);
            var kek1 = new Volunteer();

            kek1.firstName   = "Ahmad";
            kek1.lastName    = "Tea";
            kek1.countryCode = "RUS";
            kek1.gender      = "Male";
            list.Add(kek1);
            await client.AddVolunteersAsync(list.ToArray());
        }
Exemplo n.º 5
0
 private async void button8_Click(object sender, EventArgs e)
 {
     var client = new AdminService.AdminServiceClient();
     await client.AddUserAsync("test", "test", "test", "test", "C");
 }
Exemplo n.º 6
0
 private async void button4_Click(object sender, EventArgs e)
 {
     var client = new AdminService.AdminServiceClient();
     await client.AddCharityAsync("KEK", "TEST", "KEK");
 }