maartenballiauw,
@maartenballiauw@mastodon.online avatar

With #testcontainers, you can spin up and tear down #Docker containers in your tests.

If you need a database, you don’t need to mock it: your #xUnit, #NUnit, and #MSTest code can launch an actual database!

Learn more in this blog post by @khalidabuhakmeh: https://jb.gg/ua9vjg

#dotnet

hovfefe,

@maartenballiauw Thanks @khalidabuhakmeh for covering Testcontainers for .NET! I am thrilled 🙏 I think I noticed a tiny mistake 🐛. The first code example should be from the HttpTest class. The current example does not match with the text.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@hovfefe @maartenballiauw I inelegantly mention creating a test class (or anything you’d like from here). I don’t think it’s a mistake. I’ll fix the wording there.

hovfefe,

@khalidabuhakmeh Hm, maybe I understand something wrong, but the first code example shows CustomContainerTest instead of HttpTest.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@hovfefe I’m a dummy. Thanks for catching that. I updated the sample to the correct one (cache might take a few minutes to update). Ugh… the joys of copying and pasting from Google Docs. 😅

  • All
  • Subscribed
  • Moderated
  • Favorites
  • dotnet
  • DreamBathrooms
  • ngwrru68w68
  • tester
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • tacticalgear
  • JUstTest
  • osvaldo12
  • normalnudes
  • cubers
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • Leos
  • provamag3
  • anitta
  • modclub
  • megavids
  • lostlight
  • All magazines