public void BindPropertyShouldReturnNullIfTypeNotStructured() { var result = InnerPathTokenBinder.BindProperty(EdmCoreModel.Instance.GetDecimal(false), "NotStructured", DefaultUriResolver); Assert.Null(result); }
public void BindPropertyShouldBeCaseSensitive() { var result = InnerPathTokenBinder.BindProperty(HardCodedTestModel.GetPersonTypeReference(), "shoe", DefaultUriResolver); Assert.Null(result); }
public void BindPropertyShouldReturnNullIfNotFound() { var result = InnerPathTokenBinder.BindProperty(HardCodedTestModel.GetPersonTypeReference(), "missing", DefaultUriResolver); Assert.Null(result); }
public void BindPropertyShouldReturnCorrectPropertyIfFoundForEntity() { var result = InnerPathTokenBinder.BindProperty(HardCodedTestModel.GetPersonTypeReference(), "Shoe", DefaultUriResolver); Assert.Same(HardCodedTestModel.GetPersonShoeProp(), result); }
public void BindPropertyShouldReturnCorrectPropertyIfFoundForComplex() { var result = InnerPathTokenBinder.BindProperty(HardCodedTestModel.GetPersonAddressProp().Type, "MyNeighbors", DefaultUriResolver); Assert.Same(HardCodedTestModel.GetAddressMyNeighborsProperty(), result); }
public void BindPropertyShouldReturnNullIfTypeNotStructured() { var result = InnerPathTokenBinder.BindProperty(EdmCoreModel.Instance.GetDecimal(false), "NotStructured"); result.Should().BeNull(); }
public void BindPropertyShouldReturnNullIfNotFound() { var result = InnerPathTokenBinder.BindProperty(HardCodedTestModel.GetPersonTypeReference(), "missing"); result.Should().BeNull(); }
public void BindPropertyShouldBeCaseSensitive() { var result = InnerPathTokenBinder.BindProperty(HardCodedTestModel.GetPersonTypeReference(), "shoe"); result.Should().BeNull(); }
public void BindPropertyShouldReturnCorrectPropertyIfFoundForComplex() { var result = InnerPathTokenBinder.BindProperty(HardCodedTestModel.GetPersonAddressProp().Type, "MyNeighbors"); result.Should().BeSameAs(HardCodedTestModel.GetAddressMyNeighborsProperty()); }
public void BindPropertyShouldReturnCorrectPropertyIfFoundForEntity() { var result = InnerPathTokenBinder.BindProperty(HardCodedTestModel.GetPersonTypeReference(), "Shoe"); result.Should().BeSameAs(HardCodedTestModel.GetPersonShoeProp()); }