public void WhenTheClientGetsAllProjects()
        {
            var client = StepHelpers.SetupHttpClient(_projectTestModel.UserName, _projectTestModel.Password);

            _responseContent = client.GetAsync("http://localhost:55301/api/v1/projects").Result;
            _projectDto = JsonConvert.DeserializeObject<ProjectDto>(_responseContent.Content.ReadAsStringAsync().Result);
            client.Dispose();
        }
        // GET api/projects
        public virtual HttpResponseMessage Get()
        {
            var projects = new List<Project>();
            try
            {
                projects = _projectRepository.GetByUser(User.Identity.Name).ToList();       
            }
            catch (Exception ex)
            {
                var error = new HttpError("Error getting projects: " + ex.Message) { { "Trace", ex.StackTrace } };
                return Request.CreateErrorResponse(HttpStatusCode.InternalServerError, error);
            }

            var projectDto = new ProjectDto()
            {
                Meta = new ProjectMeta() { NumberProjects = projects.Count() },
                Projects = projects
            };

            return Request.CreateResponse<ProjectDto>(HttpStatusCode.OK, projectDto);
        }