public void Index_GivenWrongObjectType_Ignore() { var view = new UserSearchView(); var wrongObjectType = new Object(); var results = view.Index(wrongObjectType); Assert.That(results, Is.Empty); }
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_GivenObjectWithNoMetadata_ReturnEmptyList() { var view = new SearchView(McmRepository.Object); var obj = new Object { Guid = new Guid("10000000-0000-0000-0000-000000000001"), ObjectTypeID = 64 }; var result = view.Index(obj); Assert.That(result, Is.Empty); }