public void ResolutionFromTypeShouldUseServerModelWhenPresentForComplexCollectionTypes() { var complexType = new EdmComplexType("Fake", "MyServerType"); this.serverModel.AddElement(complexType); var testSubject = this.CreateTypeResolver( true, resolveNameFromType: t => { t.Should().Be(typeof(TestClientComplexType)); return("Fake.MyServerType"); }); IEdmType result = testSubject.ResolveExpectedTypeForReading(typeof(List <TestClientComplexType>)); result.Should().BeAssignableTo <IEdmCollectionType>(); result.As <IEdmCollectionType>().ElementType.Definition.Should().BeSameAs(complexType); }