コード例 #1
0
        public void GetStaffMembersHasData()
        {
            var service = new StaffService();

            List<IStaff> staffMembers = service.GetStaffMembers();

            Assert.IsNotNull(staffMembers);
            Assert.IsTrue(staffMembers.Any());
            Assert.IsNotNull(staffMembers.First());

            // Check data items needed for GetStaffAppointments
            Assert.IsNotNull(staffMembers.First().Id);
            Assert.IsNotNull(staffMembers.First().FirstName);
            Assert.IsNotNull(staffMembers.First().LastName);
        }
コード例 #2
0
        public void Setup()
        {
            var service = new StaffService();

            _staff = service.GetStaffMembers().First();
        }