How to Write Testable Code with Dependency Injection | Swift | Xcode | TDD
HTML-код
- Опубликовано: 10 июл 2024
- This video shows that how can we write testable code using Dependency Injection. What is Inversion of Control, Dependency Injection, how to pass mock data and what changes should we make for writing test cases (without changing anything in the module that we want to test).
No one explained dependency injection with so much clarity. Awesome! 👌🙏
Fantastic, much-simplified explanation of Dependency Injection.
Thank you. I finally understood Dependency Injection.
Good explanation with a good example. Thank you
Thanks brother for this awesome video.
thanks for the video its easy to understand and quality is good.
Greatly explained Pallav 👍
Fantastic explanation
Thanks Pallav from Brazil!
Pallav I really appreciate your efforts, I follow various iOS resources (paid + free) inorder to keep learning new stuff, the type of content you are creating is amazing and that too for free.
Thanks for the kind words Sumit.
Glad that you are liking the content. I appreciate your constant support 🙂
This is amazing Session for Dependency Injection.
Thanks Yogesh 🙂
Thanks a lot pallav.
Your videos are very helpful. I am beginner in writing test cases and currently working on a VIPER swift project. If you can create more videos related to VIPER+DI along with diff test cases.
Thanks Pallav for this short but informative tutorial.
For JSON decoding testing after API call , would you suggest to test the decoding of actual json from an API kept in TestSuite or is there any other
preferable way ? Can you make another short video on it if possible ?
Thank you very much.
Thanks man - you are great
Thanks Ali, happy that you found the videos useful 🙂
@@iCode_Happy_Coding I am looking forward to more videos.
Can you extend the example in the video with one more test case of actual payment. Thanks for the video, its very helpful.
Hello Pallav I follow your channel more frequently. Why don't you made some video on setup CI/CD with jenkins through Fastlane. Can you do one sample project on this please
Man simply great…. You deserve 👏… all courses and videos so far on RUclips are fail in front of this… please dont stop guiding us… would like to see Protocol Oriented Programming in real world Xcode project… urge you yo make a video on same.. It RUclips would have multiple like and subscribe option I would have done it 😀.. where you based man?
Thanks for the kind words Sagar. I'll try do more videos on Protocol Oriented Programming.
Thanks for the suggestion 🙂
nice
I just started watching your videos recent. You offer really superb content. Is this tutorial having a code base we could use to follow along?
Unfortunately not.
I'll see that I host the template project/source code for my upcoming videos. Thanks for the suggestion 🙂
Thanks for this session. Can you take a lecture on gRPC and protocol buffers in iOS ?
That’s a good suggestion Swathy. I’ll try covering it.
Thanks 🙂
Please make a full playlist with protocol orientated programming, Unit Testing in iOS and TDD
Thanks a lot.
Sure. I got this suggestion from other viewers too, and I’ll definitely try for making a series of videos covering all these. Thanks for your suggestion and constant support. Appreciate that.🙂
Thanks brother.. can you make a video of writing a network layer using combine, URLSession for POST and GET in swift?
Sure Abhi, I’ll try covering that. Thanks for the suggestion🙂
Your are creating amazing content. I need some help to improve my code. Can you please provide me a simple demo project with proper mvvm architecture. It will be great help thanks
As of now, I don’t have any demo project using MVVM. But it’s a nice suggestion and I’ll try covering it in one of the videos. The project that I’ll create for that video, I’ll share that on GitHub.
Thanks for suggesting this 🙂
Pallav can you pls make a detailed video on protocol-oriented programming. You did that here, it will be nice if you go in deep.
Sure Radha. I’ll think of a use case through which I can explain all the important concepts related to Protocol oriented Programming, and will try to cover it soon. Thanks for the suggestion. 🙂
Good explanation
Hi can you share the code link for this please
Hi is this code available ?