public void Verify_Source_Is_Registered_On_Registration() { var registry = new NewsSourceRegistry <NewsSource>(); var source = registry.Register("source1"); Assert.True(registry.IsRegistered("source1")); Assert.True(registry.IsRegistered(source.Id)); }
public void Verify_Source_Is_Unregistered_Before_Registration() { var registry = new NewsSourceRegistry <NewsSource>(); Assert.True(!registry.IsRegistered("source1")); }