public Worker(Worker obj) { this.active = obj.active; this.address = obj.address; this.altPhoneNo = obj.altPhoneNo; this.email = obj.email; this.name = obj.name; this.phoneNo = obj.phoneNo; this.postNo = obj.postNo; this.surname = obj.surname; this.workerStatus = obj.workerStatus; this.workNo = obj.workNo; }
public void WorkerStatus() { var workerStatus = new Company.WorkerStatus("testStaus", 1); Assert.AreNotEqual(null, workerStatus); // testing get Assert.AreEqual("testStaus", workerStatus.Staus); Assert.AreEqual(1, workerStatus.StautsNo); // testing set workerStatus.Staus = "newStaus"; Assert.AreEqual("newStaus", workerStatus.Staus); }
public Worker(bool active, string address, string altPhoneNo, string email, string name, string phoneNo, Interface.IpostNo postNo, string surname, WorkerStatus workerStatus, int workNo) { this.active = active; this.address = address; this.altPhoneNo = altPhoneNo; this.email = email; this.name = name; this.phoneNo = phoneNo; this.postNo = postNo; this.surname = surname; this.workerStatus = workerStatus; this.workNo = workNo; }
public WorkerStatus(WorkerStatus obj) { this.staus = obj.staus; this.stautsNo = obj.stautsNo; }