Beispiel #1
0
        public override void Download()
        {
            var userRoles = SourceContext.UserRoles.ToList();

            userRoles.ForEach(NullReferencePropeties);

            DeleteDataFromTable("AspNetUserRoles");
            DestinationContext.UserRoles.AddRange(userRoles);
            DestinationContext.SaveChanges();
        }
 public static void TestPrep()
 {
     application      = Application.Launch(applicationPath);
     window           = application.GetWindow("Travel_Requirement", InitializeOption.NoCache);
     titlebox         = window.Get <TextBox>("TitleBox");
     destinationlabel = window.Get <Label>("DestinationsLabel");
     countrieslist    = window.Get <ComboBox>("CountriesList");
     submit           = window.Get <Button>("SubmitButton");
     context          = repo.Context();
 }
 public DestinyInfoRepository(string connection = "TravelRequirementApp.DestinationContext")
 {
     PopulateGermany();
     PopulateEngland();
     PopulateAustralia();
     PopulateSweden();
     PopulateItaly();
     _dbContext = new DestinationContext();
     _dbContext.Destinations.Load();
 }
Beispiel #4
0
        public override void Download()
        {
            var contestRings = SourceContext.ContestRings.ToList();

            contestRings.ForEach(NullReferencePropeties);

            var tableName = nameof(DestinationContext.ContestRings);

            DeleteDataFromTable(tableName);
            SetInsertIdentityOn(tableName);
            DestinationContext.ContestRings.AddRange(contestRings);
            DestinationContext.SaveChanges();
            SetInsertIdentityOff(tableName);
        }
Beispiel #5
0
 public HomeController(ILogger <HomeController> logger, DestinationContext context)
 {
     _logger  = logger;
     _context = context;
 }