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); }
public TrackHasBeenRemovedFromPlayListEventHandler(TracksNotifierPort tracksNotifier, WebsocketPort websocketPort) { this.tracksNotifier = tracksNotifier; this.websocketPort = websocketPort; }
public void SetUp() { tracksNotifier = Substitute.For <TracksNotifierPort>(); websocketPort = Substitute.For <WebsocketPort>(); trackHasBeenAddedToPlayList = new TrackHasBeenAddedToPlayListEventHandler(tracksNotifier, websocketPort); }
public TrackHasBeenAddedToPlayListEventHandler(TracksNotifierPort tracksNotifier) { this.tracksNotifier = tracksNotifier; }
public TrackHasBeenRemovedFromPlayListEventHandler(TracksNotifierPort tracksNotifier) { this.tracksNotifier = tracksNotifier; }
public void SetUp() { playListPersistence = Substitute.For <PlayListPersistencePort>(); tracksNotifier = Substitute.For <TracksNotifierPort>(); addTrackToPlayListService = new AddTrackToPlayListService(playListPersistence, tracksNotifier); }