public void LogonTest()
        {
            // Arrange
            IList<LogonCredentials> credentials = new List<LogonCredentials>()
            {
                new LogonCredentials { EmployeeID = 1, Username = "******", Password = "******" }
            };

            IList<Employee> employees = new List<Employee>()
            {
                new Employee { ID = 1, FirstName = "Employee", LastName = "Test" }
            };

            ILogonRepository logonRepository = new LogonRepository(credentials);
            IEmployeeRepository employeeRepository = new EmployeeRepository(employees);

            ILogonService logonService = new LogonService(logonRepository, employeeRepository);

            LogonRequest request = new LogonRequest { Username = "******", Password = "******" };

            // Act
            LogonResponse response = logonService.Logon(request);

            // Assert
            Assert.IsNotNull(response.Employee);
            Assert.IsTrue(response.Success);
            Assert.AreEqual(1, response.Employee.ID);
        }
        public void GetLogonCredentialsFailTest()
        {
            // Arrange
            List<LogonCredentials> credentials = new List<LogonCredentials>()
            {
                new LogonCredentials { Username = "******", Password = "******" }
            };

            LogonRepository repository = new LogonRepository(credentials);

            // Act
            LogonCredentials result = repository.GetLogonCredentials("Bad", "Bad");

            // Assert
            Assert.IsNull(result);
        }
        public void GetLogonCredentialsTest()
        {
            // Arrange
            List<LogonCredentials> credentials = new List<LogonCredentials>()
            {
                new LogonCredentials { Username = "******", Password = "******", EmployeeID = 1 }
            };

            LogonRepository repository = new LogonRepository(credentials);

            // Act
            LogonCredentials result = repository.GetLogonCredentials("Test", "Test");

            // Assert
            Assert.IsNotNull(result);
            Assert.AreEqual("Test", result.Username);
            Assert.AreEqual("Test", result.Password);
            Assert.AreEqual(1, result.EmployeeID);
        }