public void doesnt_leave_view_and_mediator_mappings_lying_around() { mediatorMap.MapMatcher(new TypeMatcher().AnyOf(typeof(SupportView), typeof(SupportView))).ToMediator(typeof(ExampleMediatorWatcher)); mediatorMap.HandleView(new SupportView(), typeof(SupportView)); Assert.That(injector.SatisfiesDirectly(typeof(SupportEventView)), Is.False); Assert.That(injector.SatisfiesDirectly(typeof(SupportView)), Is.False); Assert.That(injector.SatisfiesDirectly(typeof(ExampleMediatorWatcher)), Is.False); }
public void MapMatcher_Creates_Mapper() { TypeMatcher matcher = new TypeMatcher().AllOf(typeof(SupportView)); Assert.That(mediatorMap.MapMatcher(matcher), Is.InstanceOf(typeof(IMediatorMapper))); }