Raso
Issue with xUnit and Integration Test
@dreadfullydistinct thanks for the answer! Looks like I'll have to go with collections then.. right now it's not yet an application, it's literally as simple as the code above, I was just building a custom personal clean architecture template, and was adding some tests to that template.. I'm just testing simple CRUD, that's why I don't understand how I am already out of that xunit pattern.. I'll try to organize in collection, but it'll be ugly to my eyes 😂 like I'll have maybe three collections:
- one for get by id, get all and update
- one for delete by id
- ine for delete all
In this way I should be sure that all the tests run as they are intended to run, without risking to edit the database
13 replies
Unable to properly launch Web API using Docker (Compose)
Just to be sure, Are you trying to reach the http://localhost:8080 right? Without docker the port might be the 55720 but in your docker-compose you are telling that you are mapping for http 8080 your pc -> 8080 docker container, for https 8081 your pc -> 8081 docker container
7 replies
Issue with xUnit and Integration Test
In this case, I seeded the database with three entities. So in the GetAll I want to ensure that there will be at least 3 entities (at least because I have the CreateTodo test as well, which will lead it to 4, but then I have the delete by id which will lead again to 3, and then the delete all which would lead to 0).. I'm actually confused on how I should handle that without using an order to be honest
13 replies