Thursday, May 17, 2007

Loren Ipsum library for .NET

It's QA Time in my world now... Just finished implementing a TeamSite/ASP.NET Intranet with a nice framework that allows TS to really only manage the content and metadata as XML and ASP.NET manages the presentation layer. The data access layer is defined by some XML that generates not only .NET access classes (using XML deserialization, of course), but helps us build all of the DCTs for the content entry.

Anyway, it's time to stress test this thing, and we're going to need a lot of data to really simulate what Intranets and Corportate websites can get like after a couple of years of abuse... That's more than my stubby fingers can type, and I dare say more than I can even copy/paste from www.lipsum.com. I figured it was high time to just make a library... Since they kindly provide an XML feed, it's super easy to just generate a request and pull the text out of it. I took it a small step further and blew out the API about as fully as possible.

Anyway, generating random content is now as easy as:
LipsumResponse r = Generator.Get(new LipsumRequest(20, LipsumRequest.RequestType.WORDS, false));
Console.WriteLine(r.Lipsum);
Here's links to the source, binaries, and documentation:

Documentation
Source
Binaries

#    Comments [0] |
Comments are closed.

-