public void CreateUser()
        {
            var repo = new Repositories.UserRepository(_context);

            var name = new Models.Name
            {
                FirstName = "Kaj",
                LastName = "Bromose"
            };

            var user = new Models.User
            {
                Username = "******",
                Password = "******",
                Name = name
            };

            repo.InsertOnSubmit(user);
            _context.SubmitChanges();

            var actual = (repo.Single(u => u == user));

            Assert.IsNotNull(actual);
            Assert.IsInstanceOfType(actual, typeof(Models.User));
            Assert.AreEqual(actual, user);

            Assert.IsNotNull(actual.Name);
            Assert.IsInstanceOfType(actual.Name, typeof(Models.Name));
            Assert.AreEqual(name, actual.Name);
        }
 /// <summary>
 /// Makes sure that an instance of User Exists
 /// </summary>
 private void EnsureUserExists()
 {
     if (User == null)
         User = new User();
 }