public void GetStaffListTest1()
        {
            MasterDataLinqBroker target = new MasterDataLinqBroker(); // TODO: Initialize to an appropriate value
            List<IStaff> expected = Context.Staffs.Where(s => !s.IsDeleted).Cast<IStaff>().ToList();
            IList<IStaff> actual;
            actual = target.GetStaffList();

            IEnumerator<IStaff> e1 = expected.GetEnumerator();
            IEnumerator<IStaff> e2 = actual.GetEnumerator();

            while (e1.MoveNext() && e2.MoveNext())
            {
                Assert.AreEqual(e1.Current.StaffID, e2.Current.StaffID);
                Assert.AreEqual(e1.Current.InitialName, e2.Current.InitialName);
                Assert.AreEqual(e1.Current.FirstName, e2.Current.FirstName);
                Assert.AreEqual(e1.Current.LastName, e2.Current.LastName);
                Assert.AreEqual(e1.Current.DateofBirth, e2.Current.DateofBirth);
                Assert.AreEqual(e1.Current.Gender, e2.Current.Gender);
                Assert.AreEqual(e1.Current.PostCode, e2.Current.PostCode);
                Assert.AreEqual(e1.Current.Address, e2.Current.Address);
                Assert.AreEqual(e1.Current.Province, e2.Current.Province);
                Assert.AreEqual(e1.Current.PhoneNo, e2.Current.PhoneNo);
                Assert.AreEqual(e1.Current.IsDeleted, e2.Current.IsDeleted);
                Assert.AreEqual(e1.Current.UserGuid, e2.Current.UserGuid);

                Assert.AreEqual(e1.Current.RowGuid, e2.Current.RowGuid);

            }

            //Assert.AreEqual(expected, actual);
            //Assert.Inconclusive("Verify the correctness of this test method.");
        }
        public void GetStaffListTest()
        {
            MasterDataLinqBroker target = new MasterDataLinqBroker(); // TODO: Initialize to an appropriate value
            string sortExp = string.Empty; // TODO: Initialize to an appropriate value
            bool sortDesc = false; // TODO: Initialize to an appropriate value
            int startIndex = 0; // TODO: Initialize to an appropriate value
            int pageSize = 1110; // TODO: Initialize to an appropriate value
            string filter = "City.Contains(\"renon\")"; // TODO: Initialize to an appropriate value
            char gender = 'P';
            IList<IStaff> expected = Context.Staffs.Where(p => p.StaffID == 6).Cast<IStaff>().ToList(); // TODO: Initialize to an appropriate value
            IList<IStaff> actual;
            actual = target.GetStaffList(gender, sortExp, sortDesc, startIndex, pageSize, filter);

            IEnumerator<IStaff> e1 = expected.GetEnumerator();
            IEnumerator<IStaff> e2 = actual.GetEnumerator();

            while (e1.MoveNext() && e2.MoveNext())
            {
                Assert.AreEqual(e1.Current.StaffID, e2.Current.StaffID);
                Assert.AreEqual(e1.Current.InitialName, e2.Current.InitialName);
                Assert.AreEqual(e1.Current.FirstName, e2.Current.FirstName);
                Assert.AreEqual(e1.Current.LastName, e2.Current.LastName);
                Assert.AreEqual(e1.Current.DateofBirth, e2.Current.DateofBirth);
                Assert.AreEqual(e1.Current.Gender, e2.Current.Gender);
                Assert.AreEqual(e1.Current.PostCode, e2.Current.PostCode);
                Assert.AreEqual(e1.Current.Address, e2.Current.Address);
                Assert.AreEqual(e1.Current.Province, e2.Current.Province);
                Assert.AreEqual(e1.Current.PhoneNo, e2.Current.PhoneNo);
                Assert.AreEqual(e1.Current.IsDeleted, e2.Current.IsDeleted);
                Assert.AreEqual(e1.Current.UserGuid, e2.Current.UserGuid);

                Assert.AreEqual(e1.Current.RowGuid, e2.Current.RowGuid);

            }

            //Assert.Inconclusive("Verify the correctness of this test method.");
        }