public void ShouldRegisterViews() { var container = new MockUnityContainer(); var module = new TestableMetadataModuleModule(container); module.InvokeRegisterViewsAndServices(); Assert.AreEqual(2, container.Types.Count); Assert.AreEqual(typeof(MetadataView), container.Types[typeof(IMetadataView)]); Assert.AreEqual(typeof(MetadataViewPresentationModel), container.Types[typeof(IMetadataViewPresentationModel)]); }
public void ShouldRegisterViews() { var container = new MockUnityContainer(); var module = new TestableMetadataModuleModule(container); module.InvokeRegisterViewsAndServices(); Assert.AreEqual(8, container.Types.Count); Assert.AreEqual(typeof(ClipMetadataView), container.Types[typeof(IClipMetadataView)]); Assert.AreEqual(typeof(ClipMetadataViewPresentationModel), container.Types[typeof(IClipMetadataViewPresentationModel)]); Assert.AreEqual(typeof(SequenceMetadataViewModel), container.Types[typeof(ISequenceMetadataViewModel)]); Assert.AreEqual(typeof(SequenceMetadataView), container.Types[typeof(ISequenceMetadataView)]); Assert.AreEqual(typeof(OverlayMetadataView), container.Types[typeof(IOverlayMetadataView)]); Assert.AreEqual(typeof(OverlayMetadataViewPresentationModel), container.Types[typeof(IOverlayMetadataViewPresentationModel)]); Assert.AreEqual(typeof(TransitionsMetadataView), container.Types[typeof(ITransitionsMetadataView)]); Assert.AreEqual(typeof(TransitionsMetadataViewPresentationModel), container.Types[typeof(ITransitionsMetadataViewPresentationModel)]); }