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>(); }
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 }; }
public LinkController(ILinkDataService dataService) { this.dataService = dataService; }
public ActorControllerTests() { repo = Mock.Create <IActorRepository>(); linkDataService = Mock.Create <ILinkDataService>(); target = new ActorController(repo, linkDataService); }
public ActorController(IActorRepository repo, ILinkDataService linkDataService) { repository = repo; this.linkDataService = linkDataService; }