예제 #1
0
 public ActorRepository(ILinkDataService linkDataService, StoryboardContext dbContext)
 {
     Mapper.CreateMap <ActorTableRow, Actor>();
     Mapper.CreateMap <AddUpdateActorCommand, ActorTableRow>();
     this.dbContext       = dbContext;
     this.linkDataService = linkDataService;
 }
예제 #2
0
 public StoryRepository(ILinkDataService linkDataService, StoryboardContext dbContext)
 {
     this.linkDataService = linkDataService;
     this.dbContext       = dbContext;
     Mapper.CreateMap <StoryTableRow, Story>();
     Mapper.CreateMap <AddUpdateStoryCommand, StoryTableRow>();
 }
예제 #3
0
        //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);
        }
예제 #4
0
 public LinkDataService(StoryboardContext dbContext)
 {
     this.dbContext = dbContext;
 }
예제 #5
0
 public LinkRepository(StoryboardContext dbContext)
 {
     this.dbContext = dbContext;
 }
 public StorySectionRepository(StoryboardContext dbContext)
 {
     this.dbContext = dbContext;
     Mapper.CreateMap <StorySectionTableRow, StorySection>();
 }
예제 #7
0
 public StoryboardDetailController(StoryboardContext context)
 {
     _context = context;
 }