Develop and Test GraphQL Server with GraphQL .NET & ASP .NET

所在平台: Udemy

课程主页: https://www.udemy.com/course/graphql-dotnet/

课程评论:没有评论

第一个写评论        关注课程

课程简介

**课程名称:** 使用 GraphQL .NET & ASP .NET 开发和测试 GraphQL 服务器 **课程概述:** 本课程旨在帮助从未接触过 GraphQL 的学习者全面掌握使用 GraphQL .NET 开发 GraphQL 服务器的细节,并通过 GraphQLClient.NET 和 WebApplicationFactory 进行集成测试。课程还将介绍如何使用 XUnit 作为测试库,结合 GraphQL Client 进行应用程序测试。 **课程内容要点:** * **GraphQL 基础:** * 理解 GraphQL 查询 * 理解参数和参数化 * 理解操作名称和别名 * 理解 Schema 的概念 * 理解 Mutations(操作) * 理解 Fragments(片段) * **ASP.NET WebAPI 项目设置与 Entity Framework:** * 创建基础 WebAPI 项目 * 集成 Entity Framework * 构建数据层和控制器 * 实现 Repository 模式 * 在控制器中访问 Repository 数据 * **开发 GraphQL 服务器:** * 创建支持查询的 GraphQL 服务器 * 定义 Schema * 创建 QueryTypes(查询类型) * 创建 InputQueryTypes(输入查询类型,用于 Mutations) * 支持嵌套查询 * 支持参数和查询参数 * 支持嵌套子查询 * 支持 Mutations * **GraphQL 测试:** * 使用 GraphQL Client 进行测试 * 使用 XUnit 进行单元测试(不使用 HttpClient) * 通过 TestServer 和 WebApplicationFactory 进行集成测试 **课程收益:** 完成本课程后,您将能够熟练使用 GraphQL.NET 进行 GraphQL 开发,并掌握使用 WebApplicationFactory 结合 XUnit 进行单元测试和集成测试的方法,从而高效地测试整个应用程序,而无需运行完整的服务器,仅需几行代码即可实现。

课程评论(0条)

课程详情

This course Develop and Test GraphQL Server with GraphQL.NET & ASP.NET is focused on making anyone who has zero knowledge in GraphQL and make them understand the nitty-gritty details on developing GraphQL Server with GraphQL.NET and testing the GraphQL server using GraphQLClient.NET and WebApplicationFactory for integration testing. As a part of this course, we will also do testing of application with XUnit as testing library along with GraphQL Client.This course is split into the following sections for simplicityBasics of GraphQLUnderstanding QueriesUnderstanding ParametersUnderstanding ArgumentsUnderstanding Operation NameUnderstanding AliasUnderstanding SchemaUnderstanding MutationsUnderstanding FragmentsSetting up ASP.NET WebAPI project with Entity Framework as ORMCreating basic WebAPI projectAdding Entity Framework Adding Data layer and controllersCreating Repository patternAccessing data from Repository pattern for controllersDeveloping GraphQL Server which supportsCreating QueryCreating SchemaCreating QueryTypesCreating InputQueryTypes (for mutation)Support for nested QuerySupport of parameters/query argumentsSupport for nested sub-queriesSupport for MutationsTesting GraphQL using GraphQL ClientTesting using XUnitUnit Testing without HttpClientIntegration testing with TestServer and WebApplicationFactoryAt the end of the course, you will understand how to work with GraphQL using GraphQL.NET and also you will understand how we perform Unit testing and Integration testing with the help of WebApplicationFactory and reduce the footprint of running the whole server and instead just run the test server to test the whole application in just couple of lines of code.

课程标签

0人关注该课程

主题相关的课程