Beispiel #1
0
    public void Get_object_argument()
    {
        /* Given */
        var arguments = new Dictionary <string, object>
        {
            {
                "input", new Dictionary <string, object>
                {
                    { "name", "inputArg" }
                }
            }
        };

        var sut = new ResolverContext(
            _objectType,
            _objectValue,
            _field,
            _selection,
            _fields,
            arguments,
            new NodePath(),
            null);

        /* When */
        var value = sut.GetObjectArgument <InputArg>("input");

        /* Then */
        Assert.Equal("inputArg", value.Name);
    }