public void Should_be_able_to_add_a_new_domain_object_to_the_identitiy_map() { IDomainObject objectThatHasBeenAddedToMap = new DomainObject(1); IDomainObject objectThatHasNotBeenAddedToMap = new DomainObject(2); IIdentityMap <IDomainObject> map = CreateSUT( ); map.Add(objectThatHasBeenAddedToMap); Assert.IsTrue(map.ContainsObjectWithIdOf(objectThatHasBeenAddedToMap.ID( ))); Assert.IsFalse(map.ContainsObjectWithIdOf(objectThatHasNotBeenAddedToMap.ID( ))); }