Inheritance: ISerializationSession
        public void it_should_return_the_internal_id_if_the_graph_is_tracked()
        {
            var mockPersistentEvent = MockRepository.GenerateStub<IPersistenceEvent>();
            var sut = new SerializationSession(() => new[] {mockPersistentEvent}, null, false);

            var expected = new InternalId(Guid.NewGuid());
            var graph = new object();
            mockPersistentEvent.Stub(_ => _.UntypedGraph).Return(graph);
            mockPersistentEvent.Stub(_ => _.InternalId).Return(expected);

            sut.InternalIdOfTrackedGraph(graph).ShouldEqual(expected);
        }
        public void it_should_return_null_if_the_graph_is_not_tracked()
        {
            var sut = new SerializationSession(() => Enumerable.Empty<IPersistenceEvent>(), null, false);

            sut.InternalIdOfTrackedGraph(new object()).ShouldBeNull();
        }