private async Task SeedDataAsync(MrsMobileDbContext context)
 {
     foreach (var device in GetDummyDevices())
     {
         await context.Devices.AddAsync(device);
     }
     await context.SaveChangesAsync();
 }
 private async Task SeedDataAsync(MrsMobileDbContext context)
 {
     foreach (var message in GetDummyMessages())
     {
         await context.Messages.AddAsync(message);
     }
     await context.SaveChangesAsync();
 }
 private async Task SeedDataAsync(MrsMobileDbContext context)
 {
     foreach (var location in GetDummyLocations())
     {
         var userId = context.Users.FirstOrDefault().Id;
         location.UserId = userId;
         await context.Locations.AddAsync(location);
     }
     await context.SaveChangesAsync();
 }
        private async Task SeedData(MrsMobileDbContext context, bool seedDataWithLocations)
        {
            if (seedDataWithLocations)
            {
                foreach (var item in GetDummyLocations())
                {
                    await context.Users.AddAsync(item);
                }

                await context.SaveChangesAsync();
            }
            else
            {
                foreach (var item in GetDummyUsers())
                {
                    await context.Users.AddAsync(item);
                }
                await context.SaveChangesAsync();
            }
        }
        private async Task SeedUserAsync(MrsMobileDbContext context)
        {
            await context.Users.AddAsync(GetDummyUser());

            await context.SaveChangesAsync();
        }