ASP.NET Core Integration Testing Tutorial

  Рет қаралды 31,166

Julio Casal

Julio Casal

Күн бұрын

Пікірлер: 37
@shadowsir
@shadowsir Жыл бұрын
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 Жыл бұрын
Ohh, great idea! Will check it out.
@watherby29
@watherby29 Жыл бұрын
Finally normal pace. Thank you.
@TellaTrix
@TellaTrix Жыл бұрын
Wow very Amazing content you produced on your KZbin channel. Really apricate your efforts
@juliocasal
@juliocasal Жыл бұрын
So nice of you!
@user-iq334
@user-iq334 Жыл бұрын
Great video, thanks for the effort put into this.
@juliocasal
@juliocasal Жыл бұрын
My pleasure!
@alperenbaytimur
@alperenbaytimur Ай бұрын
you know, you might have saved me just now, although my sprint is failed, I atleast have hope of fixing it within 1 or 2 days now, thanks to you
@juliocasal
@juliocasal Ай бұрын
I'm glad!
@alperenbaytimur
@alperenbaytimur Ай бұрын
@@juliocasal one question though, sir to where are you adding a reference in 2:30, is it to your initial program, or to your new project ?
@MartinHAndersen
@MartinHAndersen Жыл бұрын
Thanks a gazillion. Super videi, was really helpfull 😊😊
@juliocasal
@juliocasal Жыл бұрын
Glad it was helpful!
@leonguerrero1745
@leonguerrero1745 6 ай бұрын
Gracias por compartir Julio!
@juliocasal
@juliocasal 6 ай бұрын
De nada!
@newoverlord9507
@newoverlord9507 Жыл бұрын
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 Жыл бұрын
Did you use the correct project name? InternalsVisibleTo should just work.
@newoverlord9507
@newoverlord9507 Жыл бұрын
@@juliocasal No, the only thing that worked for me was including public partial class Program {} in the program.cs file
@udayaminul2533
@udayaminul2533 2 ай бұрын
did you use microsoft testserver here? also is there a problem if i use moq?
@juliocasal
@juliocasal 2 ай бұрын
Just the WebApplicationFactory. No issues with moq.
@manuelsuarez3d
@manuelsuarez3d 4 ай бұрын
Tried this tutorial but for some reason the Integration testing continues to use my actual Database connection instead of my In-Memory one?
@juliocasal
@juliocasal 3 ай бұрын
There's no in-memory database.
@nirajchandrajoshi
@nirajchandrajoshi 4 ай бұрын
In my project, API endpoint expects JWT bearer token, This approach is not working for me, please guide me how to pass jwt token while doing integration testing.
@josecorral9645
@josecorral9645 4 ай бұрын
Just prepare the database image to contain certain data, handle the token signature just as the connection string is being handled in this video, then as part of your arrange generate the token. This is a great starting point, try to expand it to cover your needs.
@juliocasal
@juliocasal 3 ай бұрын
What is not working?
@eduardocabral707
@eduardocabral707 Жыл бұрын
Besides "Database.EnsureDeleted", I also had to add "Database.EnsureCreated"
@juliocasal
@juliocasal Жыл бұрын
That may be needed if your app doesn't run migrations on start, which would create the DB for you.
@abdelrahmanali2459
@abdelrahmanali2459 27 күн бұрын
amazing
@luisfernandodeolazabalsche3317
@luisfernandodeolazabalsche3317 10 ай бұрын
Gracias Julio.
@juliocasal
@juliocasal 10 ай бұрын
De nada!
@valeriyaleksandrovich2707
@valeriyaleksandrovich2707 Жыл бұрын
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 Жыл бұрын
Here: www.patreon.com/posts/88196476
@valeriyaleksandrovich2707
@valeriyaleksandrovich2707 Жыл бұрын
@@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 Жыл бұрын
@@valeriyaleksandrovich2707 Which course? All you'll find there is the full source code.
@valeriyaleksandrovich2707
@valeriyaleksandrovich2707 Жыл бұрын
@@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
Рет қаралды 21 М.
The Best Way To Use Docker For Integration Testing In .NET
19:34
Milan Jovanović
Рет қаралды 40 М.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
How To Test .NET REST APIs
26:17
Julio Casal
Рет қаралды 6 М.
VS Code Tutorial For C# Developers
39:22
Julio Casal
Рет қаралды 33 М.
Integration testing | ASP.NET Core 5 REST API Tutorial 15
22:13
Nick Chapsas
Рет қаралды 111 М.
xUnit or NUnit? Picking the Right Testing Library
10:00
Nick Chapsas
Рет қаралды 51 М.
Building a .NET 6 API Using TDD
1:38:59
Wes Doyle
Рет қаралды 149 М.
Background Jobs in ASP.NET Core
18:35
IAmTimCorey
Рет қаралды 61 М.
AddSingleton vs AddScoped vs AddTransient
15:23
kudvenkat
Рет қаралды 219 М.
The cleanest way to use Docker for testing in .NET
13:36
Nick Chapsas
Рет қаралды 92 М.
C# Unit Testing - Full Course - Write Unit Tests in C# like a pro!
1:22:12
tutorialsEU - C#
Рет қаралды 52 М.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН