public void GetSelectedObjects_ReturnsObjectsByGivenIdentifiersAndObjectType(string objectType, IEnumerable <string> selectIdentifiers, bool useGuid, Type expectedType)
            {
                var objectsRetriever  = new ObjectsRetriever(siteService);
                var result            = objectsRetriever.GetSelectedObjects(objectType, selectIdentifiers, useGuid);
                var actualIdentifiers = result
                                        .ToArray()
                                        .Select(info => useGuid ? info[info.TypeInfo.GUIDColumn] : info[info.TypeInfo.CodeNameColumn])
                                        .Select(id => id.ToString());

                Assert.That(actualIdentifiers, Is.EquivalentTo(selectIdentifiers));
                Assert.That(result, Is.All.TypeOf(expectedType));
            }
            public void GetSelectedObjects_ThrowsException(string objectType, bool useGuid)
            {
                var objectsRetriever = new ObjectsRetriever(siteService);

                Assert.That(() => objectsRetriever.GetSelectedObjects(objectType, Enumerable.Empty <string>(), useGuid), Throws.InvalidOperationException);
            }