Exemple #1
0
            public void CanDisplayAndAddApplicant()
            {
                Manager   manager      = new Manager();
                DateTime  date         = new DateTime();
                Applicant newApplicant = new Applicant

                {
                    ApplicantID = 1,
                    FirstName   = "Test",
                    LastName    = "Testman",
                    PhoneNumber = 1234567,
                    Address     = new Address
                    {
                        Street1           = "1234 Test Street",
                        Street2           = "Apt. 5",
                        StateAbbreviation = "OH",
                        StateName         = "Ohio",
                        ZipCode           = 12345
                    },
                    EmploymentHistory = new EmploymentHistory
                    {
                        CompanyAddress = new Address
                        {
                            Street1           = "4545 Test Street",
                            Street2           = "Suite 9",
                            StateAbbreviation = "OH",
                            StateName         = "Ohio",
                            ZipCode           = 12345
                        },
                        CompanyName = "TestCo.",
                        StartDate   = date,
                        EndDate     = DateTime.Today,
                        JobTitle    = "Tester",
                    }
                };

                manager.AddApplicant(newApplicant);
                var testResponse = manager.ListApplicants();

                Assert.IsTrue(testResponse.applicants.Count != 0);
            }