public void Worker() { var worker = new Company.Worker(new TestingCompany.WorkerTest()); // testing get Assert.AreEqual(true, worker.Active); Assert.AreEqual("testAddress", worker.Address); Assert.AreEqual("testAltPhoneNo", worker.AltPhoneNo); Assert.AreEqual("testEmail", worker.Email); Assert.AreEqual("testName", worker.Name); Assert.AreEqual("testPhoneNo", worker.PhoneNo); Assert.AreEqual(new TestingCompany.PostNumberTest().Id, worker.PostNo.Id); Assert.AreEqual("testSurname", worker.Surname); Assert.AreEqual(new TestingCompany.WorkerStatusTest().StautsNo, worker.WorkerStatus.StautsNo); Assert.AreEqual(1, worker.WorkNo); // testing get worker.Active = false; Assert.AreEqual(false, worker.Active); worker.Address = "newTestAddress"; Assert.AreEqual("newTestAddress", worker.Address); worker.AltPhoneNo = "newTestAltPhoneNo"; Assert.AreEqual("newTestAltPhoneNo", worker.AltPhoneNo); worker.Email = "newTestEamil"; Assert.AreEqual("newTestEamil", worker.Email); worker.Name = "newTestName"; Assert.AreEqual("newTestName", worker.Name); worker.PhoneNo = "newTestPhoneNo"; Assert.AreEqual("newTestPhoneNo", worker.PhoneNo); worker.PostNo = new TestingCompany.PostNumberTest(); Assert.AreEqual(new TestingCompany.PostNumberTest().Id, worker.PostNo.Id); worker.Surname = "newTestSurname"; Assert.AreEqual("newTestSurname", worker.Surname); worker.WorkerStatus = new TestingCompany.WorkerStatusTest(); Assert.AreEqual(new TestingCompany.WorkerStatusTest().StautsNo, worker.WorkerStatus.StautsNo); }