public void WhenSyncingPermissionsThenObsolotePermissionsAreDeleted() { var domain = (Domain)this.Session.Database.MetaPopulation.Find(new Guid("AB41FD0C-C887-4A1D-BEDA-CED69527E69A")); var count = new Permissions(this.Session).Extent().Count; var permission = new PermissionBuilder(this.Session).WithConcreteClassPointer(new Guid()).WithOperation(Operation.Execute).WithOperandTypePointer(new Guid()).Build(); new Permissions(this.Session).Sync(); Assert.AreEqual(count, new Permissions(this.Session).Extent().Count); }