ASP.NET Core Integration Testing Tutorial

  Рет қаралды 19,286

Julio Casal

Julio Casal

11 ай бұрын

💻Get the source code: go.dotnetacademy.io/do-not-un...
Learn how to write integration tests for your ASP.NET Core APIs, step by step.
Verify your controllers in real-world scenarios by bootstrapping your entire app in memory, using a real database and even deal with endpoints that require authorization.
🔥Become a Senior C# Backend Engineer: juliocasal.com/courses
🗺️Get My Free .NET Backend Developer Roadmap: juliocasal.com/roadmap
Join me on Patreon: / juliocasal
Follow me on LinkedIn: / juliocasal
Follow me on X: x.com/julioc
#csharp #aspnetcore #softwaretesting

Пікірлер: 30
@shadowsir
@shadowsir 11 ай бұрын
This is exactly how we've set up integration tests with one exception. We're using "test containers" to generate a whole bunch of docker based databases. That way you can still run tests in parallel without them getting in each other's way.
@juliocasal
@juliocasal 11 ай бұрын
Ohh, great idea! Will check it out.
@watherby29
@watherby29 7 ай бұрын
Finally normal pace. Thank you.
@thomasfgooch
@thomasfgooch 11 ай бұрын
Loving this! Thanks, I always have written unit tests but never integration
@juliocasal
@juliocasal 11 ай бұрын
Glad it was helpful!
@user-iq334
@user-iq334 6 ай бұрын
Great video, thanks for the effort put into this.
@juliocasal
@juliocasal 6 ай бұрын
My pleasure!
@TellaTrix
@TellaTrix 6 ай бұрын
Wow very Amazing content you produced on your KZfaq channel. Really apricate your efforts
@juliocasal
@juliocasal 6 ай бұрын
So nice of you!
@leonguerrero1745
@leonguerrero1745 19 күн бұрын
Gracias por compartir Julio!
@juliocasal
@juliocasal 18 күн бұрын
De nada!
@luisfernandodeolazabalsche3317
@luisfernandodeolazabalsche3317 4 ай бұрын
Gracias Julio.
@juliocasal
@juliocasal 4 ай бұрын
De nada!
@MartinHAndersen
@MartinHAndersen 8 ай бұрын
Thanks a gazillion. Super videi, was really helpfull 😊😊
@juliocasal
@juliocasal 8 ай бұрын
Glad it was helpful!
@newoverlord9507
@newoverlord9507 9 ай бұрын
this video was very well made but I got stuck at the InternalsVisibleTo step, the same error still showed in the Program not being visible to the tests project
@juliocasal
@juliocasal 9 ай бұрын
Did you use the correct project name? InternalsVisibleTo should just work.
@newoverlord9507
@newoverlord9507 9 ай бұрын
@@juliocasal No, the only thing that worked for me was including public partial class Program {} in the program.cs file
@eduardocabral707
@eduardocabral707 9 ай бұрын
Besides "Database.EnsureDeleted", I also had to add "Database.EnsureCreated"
@juliocasal
@juliocasal 9 ай бұрын
That may be needed if your app doesn't run migrations on start, which would create the DB for you.
@cocacola7535
@cocacola7535 Ай бұрын
The game oriented scenario just added unnecessary cognitive overload to learn integration testing.
@juliocasal
@juliocasal Ай бұрын
Sorry!
@valeriyaleksandrovich2707
@valeriyaleksandrovich2707 10 ай бұрын
It will be better if you add link to git repository. Much cannot be repeated. What you show is taken out of context👎
@juliocasal
@juliocasal 10 ай бұрын
Here: www.patreon.com/posts/88196476
@valeriyaleksandrovich2707
@valeriyaleksandrovich2707 10 ай бұрын
@@juliocasal If you share your experience here, complete it instead of starting here, and you will learn the rest from the course. This is the worst thing that exists and there is not the slightest desire to attend such courses, since it is possible that everything necessary will not be there and another course will be required, and so on. With this approach, I wish you to have as few subscribers and people willing to buy your courses as possible.
@juliocasal
@juliocasal 10 ай бұрын
@@valeriyaleksandrovich2707 Which course? All you'll find there is the full source code.
@valeriyaleksandrovich2707
@valeriyaleksandrovich2707 10 ай бұрын
@@juliocasal if I saw the code, I would say Thank you, but I see the cartridge and you have to pay for the connection
How To Use DTOs In .NET REST APIs
14:18
Julio Casal
Рет қаралды 16 М.
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 112 М.
БАБУШКИН КОМПОТ В СОЛО
00:23
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 17 МЛН
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 44 МЛН
НЫСАНА КОНЦЕРТ 2024
2:26:34
Нысана театры
Рет қаралды 1,3 МЛН
The Best Way To Use Docker For Integration Testing In .NET
19:34
Milan Jovanović
Рет қаралды 31 М.
When To Unit, E2E, And Integration Test
14:58
ThePrimeTime
Рет қаралды 92 М.
.NET API Integration Testing using an In-Memory Database!
22:39
Israel Quiroz
Рет қаралды 1,4 М.
Writing tests in .NET using xUnit -  xUnit Tutorial
25:50
Nick Chapsas
Рет қаралды 127 М.
Don't throw exceptions in C#. Do this instead
18:13
Nick Chapsas
Рет қаралды 255 М.
Why Would Anyone Hate TDD? | Prime Reacts
46:52
ThePrimeTime
Рет қаралды 145 М.
The Logging Everyone Should Be Using in .NET
15:34
Nick Chapsas
Рет қаралды 47 М.