Exemplo n.º 1
0
 public ActorRepository(ILinkDataService linkDataService, StoryboardContext dbContext)
 {
     Mapper.CreateMap <ActorTableRow, Actor>();
     Mapper.CreateMap <AddUpdateActorCommand, ActorTableRow>();
     this.dbContext       = dbContext;
     this.linkDataService = linkDataService;
 }
Exemplo n.º 2
0
 public StoryRepository(ILinkDataService linkDataService, StoryboardContext dbContext)
 {
     this.linkDataService = linkDataService;
     this.dbContext       = dbContext;
     Mapper.CreateMap <StoryTableRow, Story>();
     Mapper.CreateMap <AddUpdateStoryCommand, StoryTableRow>();
 }
Exemplo n.º 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
     };
 }
Exemplo n.º 4
0
 public LinkController(ILinkDataService dataService)
 {
     this.dataService = dataService;
 }
Exemplo n.º 5
0
 public ActorControllerTests()
 {
     repo            = Mock.Create <IActorRepository>();
     linkDataService = Mock.Create <ILinkDataService>();
     target          = new ActorController(repo, linkDataService);
 }
Exemplo n.º 6
0
 public ActorController(IActorRepository repo, ILinkDataService linkDataService)
 {
     repository           = repo;
     this.linkDataService = linkDataService;
 }