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