예제 #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
 public LinkControllerTests()
 {
     dataService    = Mock.Create <ILinkDataService>();
     target         = new LinkController(dataService);
     defaultRequest = new CreateLinkRequest
     {
         NodeAId   = 101,
         NodeAType = StoryboardNodeTypes.Story.Id,
         NodeBId   = 203,
         NodeBType = StoryboardNodeTypes.Actor.Id,
         Direction = (int)LinkFlow.AtoB,
         Strength  = 0.5f,
         Type      = 23
     };
 }
예제 #4
0
 public LinkController(ILinkDataService dataService)
 {
     this.dataService = dataService;
 }
예제 #5
0
 public ActorControllerTests()
 {
     repo            = Mock.Create <IActorRepository>();
     linkDataService = Mock.Create <ILinkDataService>();
     target          = new ActorController(repo, linkDataService);
 }
예제 #6
0
 public ActorController(IActorRepository repo, ILinkDataService linkDataService)
 {
     repository           = repo;
     this.linkDataService = linkDataService;
 }