public User AddUser( int i )
        {
            var rnd = new Random();
              var testAdd = new User();

              //testAdd.IsAdmin = true;
              //testAdd.Password = SimpleHash.ComputeHash( "a", "SHA512", null );
              //testAdd.PasswordResetFlag = true;
              //testAdd.UserName = "******";
              testAdd.IsAdmin = rnd.Next() % 2 == 0;
              testAdd.Password = "******";
              testAdd.PasswordResetFlag = rnd.Next() % 2 == 0;
              testAdd.UserName = "******" + i;
              testAdd.UserProfiles = new List<UserProfile>();
              testAdd.UserProfiles.Add( GimmeUserProfile( testAdd ) );
              return testAdd;
        }
 private UserProfile GimmeUserProfile( User add )
 {
     var testAdd = new UserProfile();
       testAdd.User = add;
       testAdd.CanvasLayout = new List<CanvasLayout>();
       testAdd.CanvasLayout.Add( GimmeCanvasLayout() );
       testAdd.Project = new Project { Name = "Impact" };
       testAdd.Scenario = new Scenario { ScenarioPath = "Impact" };
       testAdd.TileLayout = new List<TileLayout>();
       testAdd.TileLayout.Add( GimmeTileLayout() );
       return testAdd;
 }
 public Session()
 {
     User = new User();
       UserProfile = new UserProfile();
 }