public AddTrackToPlayListService(PlayListPersistencePort playListPersistence, TracksNotifierPort tracksNotifier)
 {
     this.playListPersistence = playListPersistence;
     this.tracksNotifier      = tracksNotifier;
 }
 public RemoveTrackFromPLayListService(PlayListPersistencePort playListPersistence, TracksNotifierPort tracksNotifier)
 {
     this.playListPersistence = playListPersistence;
     this.tracksNotifier      = tracksNotifier;
 }
 public void SetUp()
 {
     playListPersistence            = Substitute.For <PlayListPersistencePort>();
     tracksNotifier                 = Substitute.For <TracksNotifierPort>();
     removeTrackFromPLayListService = new RemoveTrackFromPLayListService(playListPersistence, tracksNotifier);
 }
 public void SetUp()
 {
     tracksNotifier = Substitute.For <TracksNotifierPort>();
     trackHasBeenRemovedFromPlayList = new TrackHasBeenRemovedFromPlayListEventHandler(tracksNotifier);
 }
예제 #5
0
 public TrackHasBeenRemovedFromPlayListEventHandler(TracksNotifierPort tracksNotifier, WebsocketPort websocketPort)
 {
     this.tracksNotifier = tracksNotifier;
     this.websocketPort  = websocketPort;
 }
예제 #6
0
 public void SetUp()
 {
     tracksNotifier = Substitute.For <TracksNotifierPort>();
     websocketPort  = Substitute.For <WebsocketPort>();
     trackHasBeenAddedToPlayList = new TrackHasBeenAddedToPlayListEventHandler(tracksNotifier, websocketPort);
 }
 public TrackHasBeenAddedToPlayListEventHandler(TracksNotifierPort tracksNotifier)
 {
     this.tracksNotifier = tracksNotifier;
 }
예제 #8
0
 public TrackHasBeenRemovedFromPlayListEventHandler(TracksNotifierPort tracksNotifier)
 {
     this.tracksNotifier = tracksNotifier;
 }
 public void SetUp()
 {
     playListPersistence       = Substitute.For <PlayListPersistencePort>();
     tracksNotifier            = Substitute.For <TracksNotifierPort>();
     addTrackToPlayListService = new AddTrackToPlayListService(playListPersistence, tracksNotifier);
 }