public void SpecifyingAWildCardShouldNotCauseDuplicates() { SelectedPropertiesNode.Create("Districts,*,Photo").Should().HaveStreams(this.cityType, "Photo").And.HaveNavigations(this.cityType, "Districts").And.HaveChild(this.cityType, "Districts", c => c.Should().BeSameAsEntireSubtree()); }
public void OpenTypeWithoutContainerQualifiedNameShouldNotIncludeAction() { SelectedPropertiesNode.Create("Action").Should().NotHaveAction(this.openType, this.action); }
public void GetSelectedPropertiesForNavigationPropertyForNonEmptyNodeShouldAlwaysReturnEntireSubtreeWhenEntityTypeIsNull() { EntireSubtreeNode.GetSelectedPropertiesForNavigationProperty(entityType: null, navigationPropertyName: "foo").Should().BeSameAs(EntireSubtreeNode); SelectedPropertiesNode.Create("bar").GetSelectedPropertiesForNavigationProperty(entityType: null, navigationPropertyName: "foo").Should().BeSameAs(EntireSubtreeNode); }
public void BaseTypeSegmentBeforeActionNameShouldIncludeAction() { SelectedPropertiesNode.Create("TestModel.City/Action").Should().HaveAction(this.metropolisType, this.action); }
public void ExactTypeSegmentBeforeContainerQualifiedWildCardShouldIncludeAction() { SelectedPropertiesNode.Create("TestModel.City/TestModel.*").Should().HaveAction(this.cityType, this.action); }
public void NamespaceQualifiedWildcardShouldIncludeAction() { SelectedPropertiesNode.Create("TestModel.*").Should().HaveAction(this.cityType, this.action); }
public void NamespaceAndContainerQualifiedNameWithParametersShouldIncludeAction() { SelectedPropertiesNode.Create("TestModel.Action(Edm.Int32)").Should().HaveAction(this.cityType, this.action); }
public void TypeSegmentWithNavigationUsingBaseTypeName() { SelectedPropertiesNode.Create("TestModel.City/Districts").Should().HaveOnlyNavigations(this.metropolisType, "Districts"); }
public void MultipleTypeSegmentsShouldNotProduceDuplicateStreams() { SelectedPropertiesNode.Create("TestModel.Town/Photo,TestModel.City/Photo").Should().HaveOnlyStreams(this.cityType, "Photo"); }
public void UnmatchedTypeSegments() { SelectedPropertiesNode.Create("TestModel.Fake/Photo,TestModel.Fake2/Districts").Should().NotHaveStreams(this.cityType).And.NotHaveNavigations(this.cityType); }
public void TypeSegmentWithStreamUsingBaseTypeName() { SelectedPropertiesNode.Create("TestModel.City/Photo").Should().HaveOnlyStreams(this.metropolisType, "Photo"); }
public void SimpleTypeSegmentWithNavigation() { SelectedPropertiesNode.Create("TestModel.City/Districts").Should().HaveOnlyNavigations(this.cityType, "Districts"); }
public void SimpleTypeSegmentWithStream() { SelectedPropertiesNode.Create("TestModel.City/Photo").Should().HaveOnlyStreams(this.cityType, "Photo"); }
public void SelectingANavigationShouldSelectTheEntireTreeIfWildcardAlsoPresent() { SelectedPropertiesNode.Create("Districts,Districts/*").Should().HaveOnlyNavigations(this.cityType, "Districts").And.HaveChild(this.cityType, "Districts", c => c.Should().BeSameAsEntireSubtree()); }
public void SpecificActionWithParametersShouldBeSelected() { SelectedPropertiesNode.Create("Action(Edm.Int32)").Should().HaveAction(this.cityType, this.action); }
public void MultipleTypeSegmentsShouldNotProduceDuplicateNavigations() { SelectedPropertiesNode.Create("TestModel.City/Districts,TestModel.Metropolis/Districts").Should().HaveOnlyNavigations(this.metropolisType, "Districts"); }
public void NamespaceQualifiedActionNameShouldBeSelected() { SelectedPropertiesNode.Create("TestModel.Action").Should().HaveAction(this.cityType, this.action); }
public void StreamSpecifiedInBothTypeSegmentAndDirectlyShouldNotProduceDuplicates() { SelectedPropertiesNode.Create("TestModel.City/Photo,Photo").Should().HaveOnlyStreams(this.cityType, "Photo"); }
public void UnQualifiedNameWithParametersShouldNotIncludeActionOnOpenType() { SelectedPropertiesNode.Create("Action(Edm.Int32)").Should().NotHaveAction(this.openType, this.action); }
public void NavigationSpecifiedInBothTypeSegmentAndDirectlyShouldNotProduceDuplicates() { SelectedPropertiesNode.Create("TestModel.City/Districts,Districts").Should().HaveOnlyNavigations(this.cityType, "Districts"); }
public void WrongTypeSegmentBeforeActionNameShouldNotIncludeAction() { SelectedPropertiesNode.Create("FQNS.Fake/Action").Should().NotHaveAction(this.cityType, this.action); }
public void SubPropertyOfNavigationSpecifiedInBothTypeSegmentAndDirectlyShouldNotProduceDuplicates() { SelectedPropertiesNode.Create("TestModel.City/Districts/Thumbnail,Districts/Thumbnail").Should() .HaveOnlyNavigations(this.cityType, "Districts") .And.HaveChild(this.cityType, "Districts", c => c.Should().HaveOnlyStreams(this.districtType, "Thumbnail")); }
public void DerivedTypeSegmentBeforeActionNameShouldNotIncludeAction() { SelectedPropertiesNode.Create("TestModel.Metropolis/Action").Should().NotHaveAction(this.cityType, this.action); }
public void WildCardShouldNotIncludeActions() { SelectedPropertiesNode.Create("*").Should().NotHaveAction(this.cityType, this.action); }
public void ActionsMustBeFullQualifiedIfConflictWithPropertyShouldIncludeAction() { SelectedPropertiesNode.Create("TestModel.Zip").Should().HaveAction(this.districtType, this.actionConflictingWithPropertyName); }
public void SpecificActionShouldBeNotSelectedForNonMatchingName() { SelectedPropertiesNode.Create("foo").Should().NotHaveAction(this.cityType, this.action); }
public void OpenTypeWithContainerQualifiedNameShouldIncludeAction() { SelectedPropertiesNode.Create("TestModel.Action").Should().HaveAction(this.openType, this.action); }
public void SpecificActionShouldBeSelected() { SelectedPropertiesNode.Create("Action").Should().HaveAction(this.cityType, this.action); }
public void GetSelectedNavigationPropertiesShouldAlwaysReturnEmptyEnumerationWhenEntityTypeIsNull() { EntireSubtreeNode.GetSelectedNavigationProperties(entityType: null).Should().BeEmpty(); EmptyNode.GetSelectedNavigationProperties(entityType: null).Should().BeEmpty(); SelectedPropertiesNode.Create("bar").GetSelectedNavigationProperties(entityType: null).Should().BeEmpty(); }
public void SpecifyingTheSameNavigationTwiceShouldNotCauseDuplicates() { SelectedPropertiesNode.Create("Districts,Districts").Should().HaveOnlyNavigations(this.cityType, "Districts").And.HaveChild(this.cityType, "Districts", c => c.Should().BeSameAsEntireSubtree()); }