public void ShouldRegisterViews() { var container = new MockUnityContainer(); var module = new TestablePlayerModule(container); module.InvokeRegisterViewsAndServices(); Assert.AreEqual(3, container.Types.Count); Assert.AreEqual(typeof(AggregateMediaModel), container.Types[typeof(IAggregateMediaModel)]); Assert.AreEqual(typeof(PlayerView), container.Types[typeof(IPlayerView)]); Assert.AreEqual(typeof(PlayerViewPresenter), container.Types[typeof(IPlayerViewPresenter)]); }
public void ShouldRegisterViews() { var container = new MockUnityContainer(); var module = new TestablePlayerModule(container); module.InvokeRegisterViewsAndServices(); Assert.AreEqual(9, container.Types.Count); Assert.AreEqual(typeof(PlayerView), container.Types[typeof(IPlayerView)]); Assert.AreEqual(typeof(PlayerViewPresenter), container.Types[typeof(IPlayerViewPresenter)]); Assert.AreEqual(typeof(OverlaysDisplayController), container.Types[typeof(IOverlaysDisplayController)]); Assert.AreEqual(typeof(OutputServiceFacade), container.Types[typeof(IOutputServiceFacade)]); Assert.AreEqual(typeof(ManifestMediaModel), container.Types[typeof(IManifestMediaModel)]); Assert.AreEqual(typeof(PlaybackManifestGenerator), container.Types[typeof(IPlaybackManifestGenerator)]); Assert.AreEqual(typeof(OverlaysManager), container.Types[typeof(IOverlaysManager)]); Assert.AreEqual(typeof(RubberBandingManager), container.Types[typeof(IRubberBandingManager)]); Assert.AreEqual(typeof(OverlaysDisplayController), container.Types[typeof(IOverlaysDisplayController)]); }