예제 #1
0
        public MainForm()
        {
            var Address = new Address()
            {
                City = "Budapest",
                Country = "Hungary",
                Postcode = "1117",
                StreetAddress = "Pázmány Péter sétány"
            };

            var Job = new Job()
            {
                EmployeeType = EmployeeType.Intern,
            };

            var Customers = new List<Customer>() {
                new Customer() {
                    Name = "Tony Stark", BirthDate = GetRandomDateTime(),
                    Address = Address, Job = Job
                },
                new Customer() {
                    Name = "Steve Rogers", BirthDate = GetRandomDateTime(),
                    Address = Address, Job = Job
                },
                new Customer() {
                    Name = "Nick Fury", BirthDate = GetRandomDateTime(),
                    Address = Address, Job = Job
                },
                new Customer() {
                    Name = "Bruce Banner", BirthDate = GetRandomDateTime(),
                    Address = Address, Job = Job
                }
            };

            InitializeComponent();

            _CustomerListView.Initialize(new DataManager(Customers));
        }
예제 #2
0
        public void SetupTest()
        {
            Address = new Address() {
                City = "Budapest",
                Country = "Hungary",
                Postcode = "1117",
                StreetAddress = "Pázmány Péter sétány"
            };

            Job = new Job() {
                EmployeeType = EmployeeType.Intern,
            };

            Customers = new List<Customer>() {
                new Customer() {
                    Name = "Tony Stark", BirthDate = GetRandomDateTime(),
                    Address = Address, Job = Job
                },
                new Customer() {
                    Name = "Steve Rogers", BirthDate = GetRandomDateTime(),
                    Address = Address, Job = Job
                },
                new Customer() {
                    Name = "Nick Fury", BirthDate = GetRandomDateTime(),
                    Address = Address, Job = Job
                },
                new Customer() {
                    Name = "Bruce Banner", BirthDate = GetRandomDateTime(),
                    Address = Address, Job = Job
                }
            };
        }