public void GetEmployeeToEditTest()
        {
            var options = SetupWithEmployeeAndDependent();

            using (var context = new BenefitContext(options))
            {
                var benefitRepository = new BenefitRepository(context);

                var employeeDetails = benefitRepository.GetEmployeeToEdit(1).Result;

                Assert.AreEqual("Rick", employeeDetails.FirstName);

                context.Database.EnsureDeleted();
            }
        }
        public void EditEmployeeTest()
        {
            var options = SetupWithEmployeeAndDependent();

            using (var context = new BenefitContext(options))
            {
                var benefitRepository = new BenefitRepository(context);

                var employeeToEdit = benefitRepository.GetEmployeeToEdit(1).Result;

                employeeToEdit.FirstName = "RickX";


                var employeeThatHadEditSaved = benefitRepository.EditEmployee(employeeToEdit).Result;

                Assert.AreEqual("RickX", employeeThatHadEditSaved.FirstName);

                context.Database.EnsureDeleted();
            }
        }