64. Using InMemory Database for Unit Testing

preview_player
Показать описание

No developer wants to turn in buggy code. UNIT TESTING is a highly efficient way to ensure that everything in your app is working by design before it's launched into production.

"Unit Testing .NET Core Web APIs" will teach you:
✅ What is Unit Testing?
✅ Most important Unit Testing frameworks
✅ Setting up EFCore using AppDbContext
✅ Unit Testing Web API Services
✅ Unit Testing Web API API EndPoints ([HttpGet], [HttpDelete], [HttpPost])

Thank you for watching!

#unittesting #webapi #aspnetcore #csharpdeveloper #testing #developer
Рекомендации по теме
Комментарии
Автор

Hi, great video!

I run into problem "An item with the same key has already
been added" when running multiple unit test files when initializing the same context even when i already added IDisposable and EnsureDeleted on a web api.
I'm using Xunit tests intead of Nunit, does this affect it somehow?
Any ideas how to resolve this?

ghostslinger
Автор

May i know will the In-Memory DB persist ? Lets say we made a POST request and then restarted the Application. Will I be able to see the last posted data before restart happened ?

udh
Автор

Can I use this database to parameterize a unit test with xunit?

thomaskorner
Автор

I've just found your channel, great stuff! Will be there more episodes? You mentioned the authentication but I can't find it :)

ferenc