• Design
    • Back
    • Product Design
    • Mobile Experience
    • Design Systems
  • Cloud
    • Back
    • Cloud Migration
    • Serverless
    • Microservices
    • Workshops
    • Well Architected Review
    • AWS Partnership
    • Microsoft Partnership
  • Data
    • Back
    • Data Science Solutions
    • AI & Machine Learning Solutions
    • Data Exploration Workshop
    • Data Engineering
    • Data Maturity Assessment
  • Development
    • Back
    • Outsourcing IT
  • Industry
    • Back
    • Manufacturing
    • Retail
    • Fintech
    • Finance
    • Telecommunication
    • mhealth
  • Case Studies
  • Blog
  • About us
    • Back
    • Events List
    • Publications
  • Contact Us
EN
PL

Blog

All
Machine Learning
Business Analysis
Consultancy
Artificial Intelligence
Data science
Cloud
Software Development
Quality Assurance
Design
News
Events
.NET
mocking
tips & tricks
unit testing

Mocking Linq to Sql DataContext

In one of our projects, we are using Linq to Sql  to work with database. It is really nice to use, because it allows you to query a database using Linq. Everything is fine, until you want to unit test your code... How to mock DataContext? Not so easy. DataContext…
September 3, 2010,
Waldemar Mękal
.NET
mocking
unit testing

Mocking out method parameters in Moq

Recently I had a situation, when I was writing an unit test and I need to mock a method with an 'out' parameter. I had an import functionality where the import service was using a parser for processing input data before doing actual import. I wanted to test whether the…
June 28, 2010,
Waldemar Mękal
.NET
mocking
unit testing

Mocking with Moq

There are many mocking frameworks in the .NET world. Probably, the best known is Rhino Mocks. I used it and I found it a little tricky. I had to browse its documentation many times to find out how to do something. Recently, through some technical reading, I have found another…
June 22, 2009,
Waldemar Mękal

Popular posts

Mocking Linq to Sql DataContext
Mocking out method parameters in Moq
Mocking with Moq
1

Made with in PGS Software

Copyright © PGS Software 2005 - 2021

  • Privacy policy
  • For Investors/ Dla Inwestorów
  • Careers

Copyright © PGS Software 2005 - 2021