New lib – Requester for Web API response validation

Recently I had the need to write some tests against a web API returning JSON. I found FrisbyJS which worked really well, and thought: “Why not put together this in C# and .Net?”. So this is what Requester is. It’s a small lib, that assists you with making HTTP-requests against web APIs and then helps you validates the responses. E.g. validation of JSON-schema etc. Read along and I’ll give you some short intro on how to use it. Please be advised though. It’s an early release.

Read More

My quest for a build script solution in .NET is (finally) over

My never ending quest for finding a build script solution that satisfies my requirements for facilitating builds within .NET might just have come to an end. I’ve gone from Albacore and Rake, to Phantom with Boo syntax, to psake and now finally GulpJS. I’ve glanced at Nant and others and none of the technologies has really “failed“, but there has been drawbacks. Now, I put my faith in GulpJS, which works great for e.g. compiling, minifying and bundling Less resources, but as it turns out, it also works great for managing builds within .NET.

Read More

CouchDB – Hyper-V

Tiny, little tip coming. If you as me, are setting up CouchDB on e.g Hyper-V on your local computer at home, you need to fix a three settings. Two of them are obvious, the third is a bit less obvious.

Read More

Simple JavaScript slugify

I confess. Me and regular expressions aren’t buddy, buddies. So it took some trial and error before reaching this point with something useful in the context of generating slugs. There are probably tons of scripts like these, but here we go.

Read More

An oldies week – stored procedures

This week has been a bit of a surprise. First I got some questions about NHibernate, which I realized I have been blessed from using since around 2011, then today I got into a small discussion about stored procedures and that it’s viable to let it contain logic. I’m well aware that this is a religious question and that you probably find your self in on camp or the other. Me, I’m more in the camp of no business logic in SPs, but I can see an use-case for it as well. But then again, I’m flexible and try to look at each situation objectively.

Read More

MyCouch – New fix release & some words about meta-data

I usually don’t blog about when I do a new release of MyCouch – THE async .Net driver for CouchDB and Cloudant; so why this time? Well, because it’s a rather embarrassing little fix, in the sense:

Why did I not support this earlier?

Yeah, why didn’t I? Let me try and explain why but first, lets look at what the fix actually solves.

Read More

Uri behaves differently in .Net4.0 vs .Net4.5

Got a bug report this week, that MyCouch didn’t support id’s formatted with e.g. a slash person\1. So, I was missing an encode of the segment in the Uri. Quite an easy fix. Just identified the few spots where the encode and decode was needed, e.g in my UrlSegment. Added a call to Uri.EscapeDataString running my newly added integration tests. Seeing them become green in .Net4.5 but red in .Net4.0. What!?!?

Read More

Follow

Get every new post delivered to your Inbox.

Join 30 other followers