private void SetUpTestDBContext() { dbContextOptions = new DbContextOptionsBuilder <BloggingPlatformContext>() .UseInMemoryDatabase(databaseName: "InMemoryBloggingPlatformDB") .Options; testDBContext = new BloggingPlatformContext(dbContextOptions); var autoMapperConfig = new MapperConfiguration(cfg => { cfg.AddProfile(new AutoMapperProfile()); }); testAutoMapper = new Mapper(autoMapperConfig); }
public AuthorsController(BloggingPlatformContext context) { _context = context; }
public CommentManager(BloggingPlatformContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public CategoriesController(BloggingPlatformContext context) { _context = context; }
public ValuesController(BloggingPlatformContext context) : base(context) { }
public BlogPostService(BloggingPlatformContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public PostsController(BloggingPlatformContext context) { _context = context; }
public TagService(BloggingPlatformContext bloggingContext, IMapper mapper) { _bloggingContext = bloggingContext; _mapper = mapper; }
public DBController(BloggingPlatformContext context) : base() { Context = context; }
public AuthorManager(BloggingPlatformContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public CategoryManager(BloggingPlatformContext context, IMapper mapper) { _context = context; _mapper = mapper; }