I have code like this:
[Fact]
public void should_return_at_least_3_users()
{
Rest.Call("http://localhost/admin/users/makeasfree/3");
var response = Rest.Call<List<Users>>("http://localhost/admin/freeusers");
response.Count.ShouldBeGreaterThan(0);
}
I've tried to surround this with TransactionScope but does not work. There is any way to roll back test changes without doing whole database restore?