 @testable import Clappr
 
 class DVRPluginTests: QuickSpec {
+    
+    var playback: AVFoundationPlaybackStub!
+    var container: Container!
+    
     override func spec() {
         super.spec()
 

            func buildCore(position seconds: Double, playbackType: PlaybackType) -> Core {
                
                let loader = Loader(externalPlugins: [DVRPlugin.self])
                let core = CoreStub(loader: loader)
                
                let playback = AVFoundationPlaybackStub()
                let player = AVPlayerStub()
                player.set(currentTime: CMTime(seconds: seconds, preferredTimescale: 1))
                playback.player = player
                playback.set(playbackType: playbackType)
                core.activeContainer?.playback = playback
                
                return core
            }

        _playbackType = playbackType
    }
}
