public void FindDeclaredOperationsShouldFindAllActionsShouldNotFindUnknownActionWithFullyQualifiedName() { var model = new TestEdmModel(); model.Add(new EdmAction("n", "a", null)); model.Add(new EdmAction("n2", "a", null)); var findResults = model.FindDeclaredOperations("n.a2").Should().HaveCount(0); }
public void FindDeclaredOperationsShouldFindAllActionsWithSameNameAndDifferentNamespaces() { var model = new TestEdmModel(); model.Add(new EdmAction("n", "a", null)); model.Add(new EdmAction("n2", "a", null)); var findResults = model.FindDeclaredOperations("a").ToList(); findResults.Should().HaveCount(0); }
public void FindDeclaredOperationsShouldFindFullyQualifiedName() { var model = new TestEdmModel(); model.Add(new EdmAction("n", "a", null)); model.Add(new EdmAction("n", "a2", null)); var findResults = model.FindDeclaredOperations("n.a").ToList(); findResults.Should().HaveCount(1); findResults[0].Name.Should().Be("a"); }
public void FindDeclaredOperationsShouldFindAllActionsShouldNotFindUnknownActionWithName() { var model = new TestEdmModel(); model.Add(new EdmAction("n", "a", null)); model.Add(new EdmAction("n2", "a", null)); var findResults = model.FindDeclaredOperations("a2"); Assert.Empty(findResults); }
public void FindDeclaredOperationsShouldFindFullyQualifiedName() { var model = new TestEdmModel(); model.Add(new EdmAction("n", "a", null)); model.Add(new EdmAction("n", "a2", null)); var findResults = model.FindDeclaredOperations("n.a").ToList(); var result = Assert.Single(findResults); Assert.Equal("a", result.Name); }