Example #1
0
        public void CustomerListViewTest()
        {
            var customerListView = new CustomerListView();
            customerListView.Initialize(new DataManager(Customers));

            using (var testForm = new UserControlTestForm(customerListView))
            {
                testForm.ShowDialog();
            }
        }
Example #2
0
        public void JobDetailsViewTest()
        {
            var jobDetailsView = new JobDetailsView();
            jobDetailsView.Initialize(Job);

            using (var testForm = new UserControlTestForm(jobDetailsView)) {
                testForm.ShowDialog();

                var job = jobDetailsView.GetJob();
            }
        }
Example #3
0
        public void AddressListViewTest()
        {
            var addressDetailsView = new AddressDetailsView();
            addressDetailsView.Initialize(Address);

            using (var testForm = new UserControlTestForm(addressDetailsView)) {
                testForm.ShowDialog();

                var address = addressDetailsView.GetAddress();
                Console.WriteLine(address.City);
                Console.WriteLine(address.Country);
                Console.WriteLine(address.Postcode);
                Console.WriteLine(address.StreetAddress);
            }
        }