public void Index_NotGivenAnObject_Ignore()
        {
            var view = new UserSearchView();

            var results = view.Index("not an a valid input");

            Assert.That(results, Is.Empty);
        }
        public void Index_GivenProfileObject_MapToUserSearchViewData()
        {
            var view = new UserSearchView();
            var profileObject = Make_ProfileObject();

            var result = (UserSearchViewData)view.Index(profileObject).First();

            Assert.That(result.Name, Is.EqualTo("John Doe"));
        }
        public void Index_MissingMetadata_Ignore()
        {
            var view = new UserSearchView();
            var wrongObjectType = new Object{ObjectTypeID = 55};

            var results = view.Index(wrongObjectType);

            Assert.That(results, Is.Empty);
        }
        public void Index_GivenWrongObjectType_Ignore()
        {
            var view = new UserSearchView();
            var wrongObjectType = new Object();

            var results = view.Index(wrongObjectType);

            Assert.That(results, Is.Empty);
        }