Ejemplo n.º 1
0
        public void Remove()
        {
            var manager = new SurveyedSurfaceManager(StorageMutability.Mutable);

            var siteModelUid = Guid.NewGuid();

            manager.Add(siteModelUid, DesignDescriptor.Null(), DateTime.UtcNow, BoundingWorldExtent3D.Null(), new SubGridTreeSubGridExistenceBitMask());

            var results = manager.List(siteModelUid);

            results.Should().NotBeNull();
            results.Count.Should().Be(1);

            manager.Remove(siteModelUid, results[0].ID).Should().BeTrue();
            manager.List(siteModelUid).Count.Should().Be(0);
        }
Ejemplo n.º 2
0
        public void List_Empty()
        {
            var manager = new SurveyedSurfaceManager(StorageMutability.Mutable);

            var results = manager.List(Guid.Empty);

            results.Should().NotBeNull();
            results.Count.Should().Be(0);
        }