Last active
December 13, 2025 15:43
-
-
Save pazteddy/4b7e617098580cefcc4dbdacff997189 to your computer and use it in GitHub Desktop.
Pruebas de integración para Customers con WebApplicationFactory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class CustomerIntegrationTests : IAsyncLifetime | |
| { | |
| private CustomWebApplicationFactory _factory = null!; | |
| private HttpClient _httpClient = null!; | |
| public async Task InitializeAsync() | |
| { | |
| _factory = new CustomWebApplicationFactory(); | |
| _httpClient = _factory.GetHttpClient(); | |
| await Task.CompletedTask; | |
| } | |
| public async Task DisposeAsync() | |
| { | |
| _httpClient?.Dispose(); | |
| await _factory.DisposeAsync(); | |
| } | |
| [Fact(DisplayName = "GET /customers debe retornar 200 OK con lista de clientes", Skip = "Falta implementación")] | |
| public async Task GetAllCustomers_ReturnsOkWithList() | |
| { | |
| } | |
| [Fact(DisplayName = "GET /customers debe validar estructura JSON correcta", Skip = "Falta implementación")] | |
| public async Task GetAllCustomers_ValidatesJsonStructure() | |
| { | |
| } | |
| [Fact(DisplayName = "GET /customers/{id} debe retornar 200 OK cuando existe", Skip = "Falta implementación")] | |
| public async Task GetCustomerById_ReturnsOkWhenExists() | |
| { | |
| } | |
| [Fact(DisplayName = "GET /customers/{id} valida propiedades del objeto JSON", Skip = "Falta implementación")] | |
| public async Task GetCustomerById_ValidatesJsonPayload() | |
| { | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment