public void AddHandler_ShouldAddHandler() { _registry.AddHandler<TestNotification.Handler>(); _services.Verify(x => x.Add(It.Is<ServiceDescriptor>(d => d.ServiceType == typeof(INotificationHandler<TestNotification>) && d.ImplementationType == typeof(TestNotification.Handler)))); }
public void AddHandler_ShouldAddHandler() { _registry.AddHandler <TestNotification.Handler>(); Assert.True(_services.Build().IsRegistered <INotificationHandler <TestNotification> >()); }