public void CreateNewProfile()
 {
     var profileId = repository.FindProfileId(profileReference);
     repository.DeleteProfile(profileId);
     var profile = new Profile
     {
         Id = string.Empty,
         ProfileId = profileId,
         Name = "Michael Quinn",
         ProfileImagePath = "img/profile-picture-me.jpg",
         Summary = "Software professional with background in web application and web service development, SOA, object-oriented programming, database, ETL, and networking.  Great success with building systems to support complex business processes in student loan, annuity, mortgage, and retail industries.",
         Applications = new List<TechnicalApplication>
         {
             new TechnicalApplication
             {
                 Priority = 1,
                 Category = "Languages",
                 ToolsCsv = "C#.NET, JavaScript, Razor, T-SQL, Linq, HTML, CSS, JSON, XML, SAML, PowerShell, Python, ASP.NET, ASP, VB.NET, VB6, Java"
             },
             new TechnicalApplication
             {
                 Priority = 2,
                 Category = "Frameworks",
                 ToolsCsv = ".NET 1.1 - 5, MVC 2-5, WCF, Web API, Node.js, Entity Framework, NHibernate, NPoco, AJAX, jQuery, AngularJS, GraphQL, KnockoutJS, Bootstrap, SignalR, OWIN, GraphQL, Rhino Mocks, Unity, Autofac, SLAB, ETW, Grunt, Gulp, Less, Cordova"
             },
             new TechnicalApplication
             {
                 Priority = 3,
                 Category = "Tools",
                 ToolsCsv = "Visual Studio, SQL Server, DB2 Connect, IIS, TFS, Git, NPM, NServiceBus, Azure, AWS, MS Test, VS Load Test, MongoDB, Visual Build, Quick Build, CC Tray, NuGet, SSIS, DTS, Ektron CMS, SSRS, RavenDB, Star Team, Build Forge, Ping Identity, Android Studio, Xcode, Spring Tool Suite"
             }
         },
         Proficiencies = new List<Proficiency>
         {
             new Proficiency
             {
                 Priority = 1,
                 Name = "UI",
                 Percentage = 75
             },
             new Proficiency
             {
                 Priority = 2,
                 Name = "Integration",
                 Percentage = 85
             },
             new Proficiency
             {
                 Priority = 3,
                 Name = "Data",
                 Percentage = 80
             }
         },
         EmployerSummary = "I've worked for a number of good companies over the past decade, but more importantly I have worked with some amazing people who have helped me grow into the professional I am today.",
         Employers = new List<Company>
         {
             new Company
             {
                 Name = "Nelnet Diversified Solutions",
                 Description = "Title IV student loan servicer for the Department of Education and FSA.",
                 ImagePath = "img/companies/nelnetlogo.jpg",
                 CompanyUrl = "http://www.n-d-s.com/",
                 StartDate = new DateTime(),
                 EndDate = new DateTime(),
                 City = "Remote from Irvine",
                 State = "CA",
                 Country = "USA",
                 Priority = 1,
                 ExperienceDetails = GetCompanyExperienceDetails("Nelnet Diversified Solutions")
             },
             new Company
             {
                 Name = "5280 Solutions",
                 Description = "IT service provider for Nelnet.",
                 ImagePath = "img/companies/5280solutionslogo.jpg",
                 CompanyUrl = "http://www.5280solutions.com/",
                 StartDate = new DateTime(),
                 EndDate = new DateTime(),
                 City = "Highlands Ranch",
                 State = "CO",
                 Country = "USA",
                 Priority = 2,
                 ExperienceDetails = GetCompanyExperienceDetails("5280 Solutions")
             },
             new Company
             {
                 Name = "MetLife",
                 Description = "US annuities line of business.",
                 ImagePath = "img/companies/metlifelogo.jpg",
                 CompanyUrl = "https://www.metlife.com/individual/investment-products/index.html?WT.ac=GN_individual_investment-products",
                 StartDate = new DateTime(),
                 EndDate = new DateTime(),
                 City = "Denver",
                 State = "CO",
                 Country = "USA",
                 Priority = 3,
                 ExperienceDetails = GetCompanyExperienceDetails("MetLife")
             },
             new Company
             {
                 Name = "Clayton Holdings",
                 Description = "Mortgage-backed securities due diligence.",
                 ImagePath = "img/companies/claytonlogo.jpg",
                 CompanyUrl = "http://www.clayton.com/",
                 StartDate = new DateTime(),
                 EndDate = new DateTime(),
                 City = "Denver",
                 State = "CO",
                 Country = "USA",
                 Priority = 4,
                 ExperienceDetails = GetCompanyExperienceDetails("Clayton Holdings")
             },
             new Company
             {
                 Name = "Sports Authority Corporate",
                 Description = "Corporate offices.",
                 ImagePath = "img/companies/sportsauthoritylogo.jpg",
                 CompanyUrl = "http://www.sportsauthority.com/corp/",
                 StartDate = new DateTime(),
                 EndDate = new DateTime(),
                 City = "Englewood",
                 State = "CO",
                 Country = "USA",
                 Priority = 5,
                 ExperienceDetails = GetCompanyExperienceDetails("Sports Authority Corporate")
             },
             new Company
             {
                 Name = "University of Colorado",
                 Description = "B.S. Business Administration and Information Systems.",
                 ImagePath = "img/companies/cubuilding.jpg",
                 CompanyUrl = "http://www.ucdenver.edu/academics/colleges/business/degrees/bachelor/Pages/Information-Systems.aspx",
                 StartDate = new DateTime(),
                 EndDate = new DateTime(),
                 City = "Denver",
                 State = "CO",
                 Country = "USA",
                 Priority = 6,
                 ExperienceDetails = GetCompanyExperienceDetails("University of Colorado")
             }
         }
     };
     repository.SaveProfile(profile);
     var queriedProfile = repository.GetProfile(profileId);
     Assert.AreEqual(profile.ProfileId, queriedProfile.ProfileId);
 }
 public void SaveProfile(Profile profile)
 {
     _dataContext.Save(profile);
 }