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

КОМЕНТАРІ • 32

  • @ManThermos
    @ManThermos 9 місяців тому +9

    de bagel

  • @cocoscacao6102
    @cocoscacao6102 9 місяців тому

    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

  • @marna_li
    @marna_li 9 місяців тому +6

    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.

    • @RawCoding
      @RawCoding  9 місяців тому +1

      Never heard of DispatchProxy, I’ll have to take a look

    • @marna_li
      @marna_li 9 місяців тому

      @@RawCoding Ok. 👍 Hassan Habib has a video on Aspect-oriented programming in which he demonstrates it. It is a great starter.

    • @ivandrofly
      @ivandrofly 9 місяців тому

      There is also Castle.Core that does the same thing@@marna_li

  • @andreassummertime
    @andreassummertime 9 місяців тому

    Wow - Great work. Nice work with the IL-Code 👍👍

  • @ChaoticNeutral6
    @ChaoticNeutral6 9 місяців тому +1

    Finally, someone who uses light mode!

  • @pacpac17
    @pacpac17 9 місяців тому +6

    Dark mode please 😊

  • @NiamaImia
    @NiamaImia 9 місяців тому +1

    10:32 exactly my thoughts when I come dealing with IL )

  • @ivandrofly
    @ivandrofly 9 місяців тому

    Thanks

  • @parlor3115
    @parlor3115 9 місяців тому +3

    Title's gonna change soon

  • @williamliu8985
    @williamliu8985 9 місяців тому

    😎need sunglasses

  • @TreeLuvBurdpu
    @TreeLuvBurdpu 9 місяців тому

    Is that SharpPad?

  • @mumk
    @mumk 9 місяців тому

    mockito, haven't heard about it for a long long time 😅

  • @Bourn77
    @Bourn77 9 місяців тому +11

    Dude your content is great. But please use Dark mode for Pete's sake. Your light mode IDE literally blinds me at night. 😂

    • @RawCoding
      @RawCoding  9 місяців тому +3

      🕶️

    • @ManderO9
      @ManderO9 9 місяців тому

      you shall pay him 50 shekels for him to use dark mode

  • @Stettafire
    @Stettafire 9 місяців тому

    Talks about "being a slave"
    Uses light mode 🤣

  • @Skyfre4k
    @Skyfre4k 9 місяців тому +1

    Nice one! Also, please stick with the light mode

  • @TreeLuvBurdpu
    @TreeLuvBurdpu 9 місяців тому

    Is that linqpad?

  • @meetingattender8132
    @meetingattender8132 9 місяців тому

    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.

    • @RawCoding
      @RawCoding  9 місяців тому +1

      Then they shall remain at the mercy of the creators of these packages.

  • @TheSaintsVEVO
    @TheSaintsVEVO 9 місяців тому

    Can the thumbnail be changed? Would like to share this video in work chat

    • @RawCoding
      @RawCoding  9 місяців тому

      Eyyy lmao, what do you think should be on the thumbnail?

    • @TheSaintsVEVO
      @TheSaintsVEVO 9 місяців тому +1

      @@RawCoding Something other than “don’t be a slave” lol

  • @fadge316
    @fadge316 9 місяців тому +1

    Keep the light mode brother, stay strong ✊

  • @the-nasim
    @the-nasim 9 місяців тому +1

    Don't be a slave. 😂