Worried about Moq? Build your own Mocking library
Вставка
- Опубліковано 31 тра 2024
- In this video I show you how you can build your own mocking library so you don't have to beg maintainers of libraries to behave a certain way.
Support my Work 🤝 / raw_coding
Buy my Courses 📚 learning.raw-coding.dev
Buy my Merch 🛒 shop.raw-coding.dev
Join the Community 💬 / discord
Tweet Tweet 📣 / anton_t0shik
Tune in LIVE! 🎥 / raw_coding
#csharp #mocking #moq
de bagel
Truly one of a kind channel. I love these "from scratch" videos. Everybody else just regurgitate the same shit, and if you want a deep dive into anything, you need to go to Rust community... Even libraries that you cover on occasion are never seen elsewhere. Much appreciated
Cool example showing Reflection.Emit! Very concise. Been a long time since I myself wrote code that generated IL.
In the case of mocking, I think that you could use DispatchProxy to intercept method calls instead. Perhaps building a framework around that.
Never heard of DispatchProxy, I’ll have to take a look
@@RawCoding Ok. 👍 Hassan Habib has a video on Aspect-oriented programming in which he demonstrates it. It is a great starter.
There is also Castle.Core that does the same thing@@marna_li
Wow - Great work. Nice work with the IL-Code 👍👍
Finally, someone who uses light mode!
Dark mode please 😊
10:32 exactly my thoughts when I come dealing with IL )
Thanks
Title's gonna change soon
What was the title?
We'll never know
😎need sunglasses
Is that SharpPad?
mockito, haven't heard about it for a long long time 😅
Dude your content is great. But please use Dark mode for Pete's sake. Your light mode IDE literally blinds me at night. 😂
🕶️
you shall pay him 50 shekels for him to use dark mode
Talks about "being a slave"
Uses light mode 🤣
Nice one! Also, please stick with the light mode
Is that linqpad?
It seems it's Rider
Amazing vid as always. But do you really think people have time for this non-sense instead of adding a package and use it to solve business problems to make shit ton of ca$hhh.
Then they shall remain at the mercy of the creators of these packages.
Can the thumbnail be changed? Would like to share this video in work chat
Eyyy lmao, what do you think should be on the thumbnail?
@@RawCoding Something other than “don’t be a slave” lol
Keep the light mode brother, stay strong ✊
😂🤣
Don't be a slave. 😂