public void Init()
 {
     ctx = EFContext.CreateContext();
     repo = new BookingStepConfigRepository(ctx);
     entity = new BookingStepConfig()
     {
         HomeId = ctx.HomeSet.FirstOrDefault(x => x.Title == "LaCorderie").Id,
         Title = "EFtest"
     };
 }
 public void Init()
 {
     ctx = EFContext.CreateContext();
     repo = new BookingStepBookingRepository(ctx);
     BookingStepConfig tmpconfig = new BookingStepConfig()
     {
         Home = ctx.HomeSet.FirstOrDefault(x => x.Title == "LaCorderie"),
         Title = "EFTest"
     };
     entity = new BookingStepBooking()
     {
         Booking = new Booking()
         {
             Comment = "I am a comment",
             DateArrival = DateTime.Now.AddYears(4),
             DateCreation = DateTime.Now,
             DateDeparture = DateTime.Now.AddYears(8),
             DateDesiredPayment = DateTime.Now.AddYears(1).AddMonths(10),
             DateModification = DateTime.Now,
             DateValidation = DateTime.Now.AddMonths(18),
             Home = ctx.HomeSet.FirstOrDefault(x => x.Title == "LaCorderie"),
             IsOnline = false,
             IsSatisfactionSended = false,
             People = new People()
             {
                 AcceptMailing = true,
                 Addr = "4 place kleber",
                 City = "Strasbourg",
                 Civility = "Mr",
                 Comment = "A mis le feu à la chambre",
                 Country = "FRANCE",
                 DateBirth = DateTime.Now,
                 DateCreation = DateTime.Now,
                 Email = "*****@*****.**",
                 Firstname = "CHAABANE",
                 Home = ctx.HomeSet.FirstOrDefault(x => x.Title == "LaCorderie"),
                 Lastname = "Jalal",
                 Mark = 0,
                 Phone1 = "0600000000",
                 Phone2 = null,
                 State = null,
                 ZipCode = "67000",
                 Hide = false,
             },
             TotalPeople = 4
         },
         BookingStepConfig = tmpconfig,
         CurrentStep = new BookingStep()
         {
             Home = ctx.HomeSet.FirstOrDefault(x => x.Title == "LaCorderie"),
             BookingStepConfig = tmpconfig,
             Title = "EFTest",
             BookingValidated = true,
             BookingArchived = false
         },
         Home = ctx.HomeSet.FirstOrDefault(x => x.Title == "LaCorderie"),
         DateCurrentStepChanged = DateTime.Now,
         MailSent = 0,
         Canceled = false
     };
 }