public void ShouldSubscibeBlankId() { EntityMatcher.Subscribe(testEntity); Assert.AreNotEqual(0, EntityMatcher.subscribedEntities.Count); }
public void ShouldNotDuplicateIds() { EntityMatcher.Subscribe(testEntity); EntityMatcher.Subscribe(testEntity); Assert.AreEqual(1, EntityMatcher.subscribedEntities.Count); }
public void ShouldThrowExceptionWhenAddNullEntity() { EntityMatcher.Subscribe(null); }