It doesn't look like TDD. It looks like the usual unit tests writing after implementation. TDD, in my opinion, means just to announce the service's interface, write all unit tests that cover future service functionality and only after this write exact service's implementation. Correct me if I'm wrong please.
@Monzy_5 ай бұрын
You're abolutely right.
@vamshi5415 ай бұрын
It has a clear and detailed explanation to test controllers and services. Thank you.
@tofrom8541 Жыл бұрын
Why you add video margin? It's problematic for Fullscreen watching
@oleksiiprykhodko517 Жыл бұрын
Mohamad hi. 🖐 Please place your camera in the bottom right corner. That way it won't overlap the useful information from the video.
@SILASGAH6 ай бұрын
I am not sure why he does that, if it is intentional or not.
@essence67983 ай бұрын
btw, u can use IEnumerable which in ur case better than list while u getting List of data from I/O
@oleksiiprykhodko517 Жыл бұрын
Mohamed, very interesting video. Thank you. And like from me. Can we have more videos about testing please? Maybe a video about integration tests on the example of an old project from the previous video?
@mouradaissani8957 Жыл бұрын
very nice, thank you Mohammed شكرا
@stefanlabuschagne6905 Жыл бұрын
Thank You - excellently done! You could break the work down into smaller segments (chapters?) and let the viewer have the opportunity to just jump to that area. Looking forward to more super informative videos!
@codewithirshad Жыл бұрын
Why u have not use existing .net 7 api projet that you posted on your channel earlier that uses automapper, entity framework & repository pattern?. That would be easy for you to use existing project u only need to add & explain unit test thinks.
@MohamadLawand Жыл бұрын
Good point, I needed to showcase how to get started from the beginning of a new project rather an existing project
@codewithirshad Жыл бұрын
@@MohamadLawand I agree previous example was very good and solid base foundation for api building and adding a unit test for that project is like Cherry on cake.
@MTSightseeing Жыл бұрын
Next we need a DDD approach please
@felixpatric4056 Жыл бұрын
I would like to second this. Majority of the online blogs and KZbin channels are pretty dated as far as Clean Architecture in Dotnet is concerned. The concept may be same but the implementation(workflow and naming convention) has changed over the years. I'm currently stuck and not aware what to follow from a beginner's standpoint-Different libraries i.e. Auto mapper and MediatR libraries have had a fresh smell of paint over the years and so is DotNetCore where Startup.cs class was removed in favor of program.cs and Minimal Api also had a slight facelift and to keep up with all this and fit them together in an application is overwhelming. I would pretty much appreciate if you could do one video capturing the clean architecture crud web Api in dotnet using generic repository pattern unit of work, DTos, Auto mapper and MediatR in one application.
@georgezalokostas6980 Жыл бұрын
Exactly@@felixpatric4056 , actually most productive applications don't even care about minimal apis, but to keep DDD and clean architecture in order to have a maintenable project, instead of focusing on minimalistic approaches. This is imo the best thing an API dev has to understand
@PaulSebastianM8 ай бұрын
Testing implementation and framework mmm
@THILLAIRAJA246 ай бұрын
Very informative. Thanks for the video. one request pls can you speak little slower , hard to follow.
@Monzy_5 ай бұрын
Sorry but this is not real test-driven development. Watch "TDD Is The Best Design Technique" by Continous Delivery to learn what real TDD is. However, this video is fine at showing how to write .NET tests with those tools.
@lukaorevic65932 ай бұрын
Dude, fix you audio please.
@jasondads95094 ай бұрын
TDD should be ❌✅❌✅❌✅ Tests should be written first.