Profile

Cover photo
Tim VanFosson
Works at The Nerdery, Bloomington, MN
Attended The University of Iowa
122 followers|104,242 views
AboutPostsPhotos

Stream

Tim VanFosson

Shared publicly  - 
 
Twin Cities Code Camp: Presentation
Links to information used in my presentation on Automated Testing: Patterns and Practices Slides Lightweight Integration Testing with Dapper Dapper Example Repository
1
Add a comment...

Tim VanFosson

Shared publicly  - 
Long ago, on a very different internet, we used IFrames extensively to layout content where that content might come from many different components on the same system. IFrames are still used but have a very different purpose t...
1
Add a comment...

Tim VanFosson

Shared publicly  - 
 
Another post inspired by a Stack Overflow question (see my answer). The specific situation encountered by the asker of the question was prompted by a situation in which the asker knew the specific type that was being returned...
1
Add a comment...

Tim VanFosson

Shared publicly  - 
 
I put together some code from various places to come up with a clean way to test nested anonymous types in JsonResults.
Recently I had a need to test some controller actions that returned nested anonymous types. Since the Data property on the JsonResult is of type object this can involve jumping through some hoops with reflection to get access...
1
Add a comment...

Tim VanFosson

Shared publicly  - 
 
The last in the setup portion of my series on Dapper integration testing
1
Add a comment...

Tim VanFosson

Shared publicly  - 
 
Diving into the technical challenges of automated integration testing with Dapper.
1
Add a comment...
Have him in circles
122 people
Raul Bastian's profile photo
A.J. Klopp's profile photo
Marin Begić's profile photo
Eugen Torica's profile photo
Mike Bohlmann's profile photo
McArdle Skeath's profile photo
Mark Ahrens's profile photo
Edward McGuire's profile photo
Uditha Boyagoda's profile photo

Tim VanFosson

Shared publicly  - 
 
Posted: TDD and Me
1
Add a comment...

Tim VanFosson

Shared publicly  - 
 
Some thoughts on the differences between API and data models.
1
Add a comment...

Tim VanFosson

Shared publicly  - 
 
A brief of example of how you'd go about beginning to do TDD with Dapper based on the infrastructure outlined in my previous posts.
In the last several posts I've set up the infrastructure for doing Test Driving Development for Dapper with lightweight integration tests. You might want to review these if you haven't already looked at them. Lightweight Inte...
1
1
Add a comment...

Tim VanFosson

Shared publicly  - 
 
The third in a series of blog posts about integration testing with Dapper
1
Add a comment...

Tim VanFosson

Shared publicly  - 
 
The first in a series of posts describing how to set up your solution to do automated, lightweight integration testing with Dapper.
1
1
Peter Hanson's profile photoTim VanFosson's profile photo
2 comments
 
You'd use a lambda to supply a function body, mostly likely, though it could be any function that takes a connection and a transaction.

ExecuteTransaction((c,t) => {
var items = c.Query<Item>("SELECT * FROM Items WHERE State =@state",{ new state = State.Unread });
if (items.Count() < 50)
{
c.Execute("UPDATE Items SET State = 1 WHERE State = 0");
}
}, IsolationLevel.Serializable); // the latter argument is unnecessary as it's the default. Provided for completeness in the example
Add a comment...
People
Have him in circles
122 people
Raul Bastian's profile photo
A.J. Klopp's profile photo
Marin Begić's profile photo
Eugen Torica's profile photo
Mike Bohlmann's profile photo
McArdle Skeath's profile photo
Mark Ahrens's profile photo
Edward McGuire's profile photo
Uditha Boyagoda's profile photo
Work
Occupation
Software Developer
Employment
  • The Nerdery, Bloomington, MN
    Software Engineer, 2012 - present
  • ITS, The University of Iowa
    Software Developer, 2004 - 2012
  • CCAD, The University of Iowa
    Computing Support Manager, 1985 - 2004
Basic Information
Gender
Male
Looking for
Networking
Relationship
Married
Other names
Timothy VanFosson
Story
Tagline
Christian Husband Father Software Developer Agilist
Bragging rights
Completed 2 marathons
Education
  • The University of Iowa
    BS, Computer Science, 1980 - 1984
  • The University of Iowa
    MCS, Computer Science, 1998 - 2002
Links
Contributor to