public DestinationService( LocationExplorerDbContext database, IRegionService regionService, ITagService tagService) { this.database = database; this.regionService = regionService; this.tagService = tagService; }
public static LocationExplorerDbContext GetContextWithData() { var options = new DbContextOptionsBuilder <LocationExplorerDbContext>() .UseInMemoryDatabase(Guid.NewGuid().ToString()) .EnableSensitiveDataLogging() .Options; var context = new LocationExplorerDbContext(options); context.Users.AddRange(new List <User>(TestHelperDataProvider.GetUsersSeedList)); context.Countries.AddRange(new List <Country>(TestHelperDataProvider.GetCountrySeedList)); context.SaveChanges(); return(context); }
public GalleryService(LocationExplorerDbContext database, IArticleService articleService) { this.database = database; this.articleService = articleService; }
public ArticleService(LocationExplorerDbContext database, UserManager <User> userManager, IDestinationService destinationService) { this.database = database; this.userManager = userManager; this.destinationService = destinationService; }
public CountryService(LocationExplorerDbContext database) { this.database = database; }
public AdminService(LocationExplorerDbContext database) { this.database = database; }