DISQUS

Emad Ibrahim: Unit Test Linq to Sql in ASP.Net MVC with Moq

  • CannonFodder · 1 year ago
    I think there's an error in the AuthenticatedController property. It seems to reference controller which does not appear to be declared. Did you mean to use authenticatedController?
  • Emad Ibrahim · 1 year ago
    @cannonfodder good catch, I meant to reference the private field authenticatedController. I fixed the code.
  • Steve · 1 year ago
    Thank you - very helpful!
  • dbunittest · 8 months ago
    Hi,
    In my opinion, DB Unit Testing is DB developer's business, not Application developer's. At least it is true in my organization, we believe the common developers are not good at database design, especially in the modern OO era.

    We employed a powerful DB unit testing tool, it named as AnyDbTest. (www.anydbtest.com). By using this tool, we need NOT write Java/.Net DB unit testing code any more. We can configure one xml file to tell what we want to test and what is our assertion. Then AnyDbTest can do the rest things.

    Additionally, we can versioned control the xml-style test case just like the code files. It is very handy.
  • hatem · 6 months ago
    hello
    ezyak ya emad
    ana delwa2ty 3andy application 3amlo asp.net mvc + subsonic to create DAL
    ana 3wz a3ml unit test 3la l controllers w ana ma3rafsh 2y 7aga fl testing wla 3omry 3amlto abl kda
    fa yaret te2oly a3mlha ezy bebasata l2n ana lsa babtedy fa bera7a 3la a5ok:D
    thnx in advance
    salam