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