Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8149693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:54:12+00:00 2026-06-06T14:54:12+00:00

I am a student on a work placement. I have been given the task

  • 0

I am a student on a work placement. I have been given the task of finishing an app, then testing.

The app is done, and I have tested 80 %. However, I have some methods that are not directly testable as they use session vars and form requests. I understand that I need to use a mocking framework, and chose to go with moq, as from what I have read it is awesome. Unfortunately, I’ve played around with it and find it a bit over my head (I’m new to C# in general, including lambdas, etc.)

I haven’t been able to find a simplified beginners walkthrough. Any ideas where I could find such a thing? As I said, all I need is to be able to mock session and forms. All attempts thus far have consisted of me (in a futile manner) plugging in random code found here on SO, and hoping for the best.

I would much rather understand it so I can truly work with it….

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T14:54:12+00:00Added an answer on June 6, 2026 at 2:54 pm

    I’ve found these tutorials which go over the basics. I don’t think there would be anything covering basic C# concepts alongside the Moq framework. If you are getting stuck on things like lambdas it shouldn’t be too hard to find a beginners tutorial. I’ve added a couple of links for lambda tutorials below.

    You might also want to try making some simple prototypes of what you want to do before attempting a full solution for the main application. This will let you play around with the concepts without having to worry about the details of the application.

    http://code.google.com/p/moq/wiki/QuickStart

    http://andrewblogs.com/blog/moq-testing-tutorial/

    http://blogs.msdn.com/b/ericwhite/archive/2006/10/03/lambda-expressions.aspx

    http://www.switchonthecode.com/tutorials/csharp-tutorial-the-lambda-operator

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I work with my student group on a project : We have some problems
Hi I have been reading some lecture notes and I cant work out why
I am a humble student on a work placement, and I have inherited a
I have been tasked with completing an app that is 75% done. It has
I have a piece of code ( I'm student ) that should work in
I have a problem getting the following scenario to work. A student can take
This question hasn't been asked yet. Some solutions probably have been proposed though to
I'm a student and have to work with Java and Eclipse. As we have
How do I get to make this sqsl query work: SELECT student.LASTNAME, student.FIRSTNAME, student.IDNO,
I work at a college and our student management systems academic year start date

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.