public void Export_Logic_With_No_Employees()
        {
            //We fake a login from a company that we know have 0 employees, but has never done a export before.
            var principal = new GenericPrincipal(new GenericIdentity("*****@*****.**"), null);
            Thread.CurrentPrincipal = principal;

            ImportExportLogic imEx = new ImportExportLogic();
            var response = imEx.Export();
            //The number of expected employees are compared to the actual number of employees for the given company.
            Assert.AreEqual(0, response.Count);

            LogRepository logrepo = new LogRepository();
            IEnumerable<Log> logList = logrepo.GetAll();

            bool logCreated = false;
            foreach (var log in logList)
            {
                if (!log.Import && log.Company.Identity.Email.Equals("*****@*****.**") && log.Employees.Count == 0)
                {
                    logCreated = true;
                }
            }

            Assert.IsTrue(logCreated);

        }
        public HttpResponseMessage Export()
        {
            ImportExportLogic imEx = new ImportExportLogic();

            List<Employee> emps = imEx.Export();

            if (emps != null && emps.Count != 0)
            {
                return Request.CreateResponse(HttpStatusCode.OK, emps);
            }

            return Request.CreateResponse(HttpStatusCode.NoContent);
        }