Unit Testing in C# 2022: 4. Mocking EXPLAINED SIMPLY [FakeItEasy]

แชร์
ฝัง

ความคิดเห็น • 24

  • @seanh2409
    @seanh2409 ปีที่แล้ว +10

    A fairly good video on intro to Mock, a little all over the place occasionally, but it is well explained. Slowing down a little to hit those dependencies early and type less could be beneficial to the overall delivery, though ;).
    Big takeaway, is, Mock replaces data access execution with "Mock" data and listens for these calls to replace the execution and return expected data.

  • @ramsameer1636
    @ramsameer1636 ปีที่แล้ว +2

    gone through every miniute very very nice explanation thanks for the content

  • @Tibiafy
    @Tibiafy ปีที่แล้ว +3

    Thx for the video! I'll use Moq cause almost all companies use it, but it realy doesn't make a difference! Few things change as I could see!

  • @yumyum7196
    @yumyum7196 11 หลายเดือนก่อน

    Great video. The bottom taskbar was tripping me because it's almost identical to mine.

  • @eastsidemusic85
    @eastsidemusic85 2 หลายเดือนก่อน

    wish I had teachers like you maan. respect

  • @Furki4_4
    @Furki4_4 ปีที่แล้ว +2

    the most meticulous unit test videos on yt ever ! thank you

  • @IndianGermanDiaries
    @IndianGermanDiaries ปีที่แล้ว +2

    "I hope I blew your mind" Really Man ! :)

  • @Mo-ef9yt
    @Mo-ef9yt 4 หลายเดือนก่อน

    Nice video 👍

  • @murtazotoshniyozov4688
    @murtazotoshniyozov4688 3 หลายเดือนก่อน

    Amazing

  • @emale003
    @emale003 2 ปีที่แล้ว +2

    Thanks for these videos. I’ve recently got a job on a dev that said they’d be using testing scripts. So, I’m trying to get a little familiar. I have an unrelated question: what kind of chair do you use? From my understanding, I’ll be mostly remote and my mesh chair isn’t working for me anymore and looks like yours is something closer to what I’m looking for.

    • @TeddySmithDev
      @TeddySmithDev  2 ปีที่แล้ว +2

      Wellness By Design. I’ve had it for like 5 years and it’s lasted forever.

  • @rebinmod
    @rebinmod 10 หลายเดือนก่อน

    The Mock Object dose not have the real Implementation of DNS . We just define the expected behavior of the external service.

  • @emeraldbadmintonfun
    @emeraldbadmintonfun ปีที่แล้ว

    how to get value from the app.config that we create in project , i'm always get null return in the unit test. even though already copy the app.config in the unit test

  • @jephrennaicker4584
    @jephrennaicker4584 ปีที่แล้ว +1

    A mock?...wait.....oh Dam, a Mock!🤣

  • @retagainez
    @retagainez 2 หลายเดือนก่อน

    Wouldn't your example be simplified by just making it a test stub? I understand that you might need to expand out functionality to mimic more behavior from a DNS dependency... but you usually don't take such big steps immediately, so that's why I'm suggesting a much simpler approach of just making a stub. Mock not really necessary for this single test case, which is typically how a test suite is written and a test case started. One at a time.
    I think Mocks typically represent an external dependency which might depend on the inputs from the system under test and makes assertions based on those.

  • @shivamshrivastav959
    @shivamshrivastav959 2 ปีที่แล้ว +4

    I have been working as a dev (recently started) . I started with unit testing , but got stuck at mocking concept and fake it easy, am unable to write further. can you help me with that ?? gmail?

    • @TeddySmithDev
      @TeddySmithDev  2 ปีที่แล้ว +2

      Post questions in discord and me or other developer will help you

  • @user-nj7of5yi4b
    @user-nj7of5yi4b 4 หลายเดือนก่อน

    thanks

    • @TeddySmithDev
      @TeddySmithDev  4 หลายเดือนก่อน

      No prob. Good to see u again.

  • @abidshaik9614
    @abidshaik9614 11 หลายเดือนก่อน +1

    Where in North Carolina ?? haha Another dude in NC watching Unit testing videos from another dude in NC lol

    • @TeddySmithDev
      @TeddySmithDev  11 หลายเดือนก่อน

      Charlotte. I could throw a rock and hit panther stadium.