public GitSyncPointServiceTest()
 {
     m_Group = CreateGroup();
     m_Service = new GitSyncPointService(m_Group);
 }
        public void Values_from_disk_are_loaded_correctly()
        {
            var state1 = SyncPointBuilder.NewSyncPoint()
                .WithId(1)
                .WithMultiFileSystemSnapshotId("id1")
                .WithFilterConfiguration("name", FilterConfiguration.Empty);

            var state2 = SyncPointBuilder.NewSyncPoint()
                .WithId(2)
                .WithMultiFileSystemSnapshotId("id3")
                .WithFilterConfiguration("name", new FilterConfiguration(FilterType.MicroscopeQuery, "Ireelevant"));
            
            m_Service.AddItem(state1);
            m_Service.AddItem(state2);

            // create another service instance that needs to load the state from disk

            var service  = new GitSyncPointService(m_Group);

            Assert.Equal(2, service.Items.Count());
            Assert.True(service.ItemExists(1));
            Assert.True(service.ItemExists(2));
            
            SyncAssert.Equal(state1, service[1]);            
            SyncAssert.Equal(state2, service[2]);            
        }