public GqlQueryBuilderTest() { var mapperMock = new Mock <IGraphTypeNameMapper>(); mapperMock.Setup(_ => _.GetTypeName(It.IsAny <Type>())).Returns((Type t) => t.Name); mapper = mapperMock.Object; }
public GqlQueryBuilder(ISchema schema, IGraphTypeNameMapper graphTypeNameMapper) { this.schema = schema ?? throw new ArgumentNullException(nameof(schema)); this.graphTypeNameMapper = graphTypeNameMapper ?? throw new ArgumentNullException(nameof(graphTypeNameMapper)); }