public void HasRequiredNecessityShouldBeHasReuired() { var testSubject = new MappingRelationshipForeignKeyMatcherHasRequired( new CodeGenEscaper()); testSubject.GetNecessity().Should().Be("HasRequired"); }
public void HasRequiredShouldBeFalse() { var navigationProperty = this.builder .FromRole(this.posts, RelationshipMultiplicity.Many) .ToRole(this.tags, RelationshipMultiplicity.ZeroOrOne) .Map("ID", "Post_ID") .Build(); var testSubject = new MappingRelationshipForeignKeyMatcherHasRequired( new CodeGenEscaper()); testSubject.IsMatch(navigationProperty).Should().BeFalse(); }