/// <summary>
 /// Creator: Lane Sandburg
 /// Created: 4/2/2020
 /// Approver: Jordan Lindo
 ///
 /// Creates a new employee Availability
 /// </summary>
 /// <remarks>
 /// Updater: NA
 /// Update: NA
 /// Approver: NA
 /// </remarks>
 /// <param name="employeeAvailability"></param>
 /// <returns>Boolean value to tell if new user was created</returns>
 public bool CreateNewEmployeeAvailability(EmployeeAvailability employeeAvailability)
 {
     try
     {
         return(_employeeAvailabilityAccessor.InsertNewEmployeeAvailability(employeeAvailability));
     }
     catch (Exception ex)
     {
         throw new ApplicationException("Unable to create new availability", ex);;
     }
 }
        public void TestCreateNewEmployeeAvailability()
        {
            // arrange
            EmployeeAvailability employeeAvailability = new EmployeeAvailability()
            {
                EmployeeID = 100000,
                DayOfWeek  = "Monday",
                StartTime  = "10:50:06",
                EndTime    = "11:50:06"
            };

            bool created        = false;
            bool expectedResult = true;

            // act
            created = _employeeAvailabilityAccessor.InsertNewEmployeeAvailability(employeeAvailability);

            // assert
            Assert.AreEqual(expectedResult, created);
        }