Beispiel #1
0
 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;
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 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;
 }
Beispiel #4
0
 public WorkerStatus(WorkerStatus obj)
 {
     this.staus    = obj.staus;
     this.stautsNo = obj.stautsNo;
 }