private void Button_Click(object sender, RoutedEventArgs e)
        {
            var restSharpHandler = new RestSharpHandler();

            if (FirstName.Text != "" && SecondName.Text != "" && BirthDate.SelectedDate != null && PeselNumber.Text != "")
            {
                restSharpHandler.CreateClient(FirstName.Text, SecondName.Text, BirthDate.SelectedDate, Int32.Parse(PeselNumber.Text));
            }
        }
Example #2
0
        public void CreateClient()
        {
            var firstName = "Magda";

            RestSarpHandler.CreateClient(firstName, "Migas", DateTime.Now, 93, 200);

            var client = RestSarpHandler.GetClient(200);

            Assert.AreEqual(firstName, client.FirstName);
        }