public ActorRepository(ILinkDataService linkDataService, StoryboardContext dbContext) { Mapper.CreateMap <ActorTableRow, Actor>(); Mapper.CreateMap <AddUpdateActorCommand, ActorTableRow>(); this.dbContext = dbContext; this.linkDataService = linkDataService; }
public StoryRepository(ILinkDataService linkDataService, StoryboardContext dbContext) { this.linkDataService = linkDataService; this.dbContext = dbContext; Mapper.CreateMap <StoryTableRow, Story>(); Mapper.CreateMap <AddUpdateStoryCommand, StoryTableRow>(); }
//private readonly ILinkDataService dataService; public ActorRepositoryTests() { var builder = new DbContextOptionsBuilder <StoryboardContext>(); builder.UseInMemoryDatabase(); context = new StoryboardContext(builder.Options); target = new ActorRepository(Mock.Create <ILinkDataService>(), context); }
public LinkDataService(StoryboardContext dbContext) { this.dbContext = dbContext; }
public LinkRepository(StoryboardContext dbContext) { this.dbContext = dbContext; }
public StorySectionRepository(StoryboardContext dbContext) { this.dbContext = dbContext; Mapper.CreateMap <StorySectionTableRow, StorySection>(); }
public StoryboardDetailController(StoryboardContext context) { _context = context; }