by community-syndication | Jul 1, 2010 | BizTalk Community Blogs via Syndication
This is an exciting moment, before summer holidays will start. I have been awarded by Microsoft with 2010 Microsoft%u00ae MVP Award. I was working today and after finishing diner with the family I opened my mailbox and found the ’Congratulations 2010 Microsoft MVP!’ email from Microsoft. I cannot describe how happy I am and how rewarding it feels to receive such an award.
I would like to thank all people at Microsoft (ones that nominated me), community members and other involved. My wife and children for enduring the long hours without me, while I was blogging, writing or participating on forums. I would dedicated this to them.
Finally I also would like to thank my dear friend and buddy Joost Smit, who always believed in me and support me last couple of years in my career.
P.S. No logo yet as I have to wait for my logo kit.
Technorati: biztalk
by community-syndication | Jul 1, 2010 | BizTalk Community Blogs via Syndication
Introduction
Welcome to the second part of my overview of jQuery. This article is part of a 3 part series. If you did not read the first article, you may want to go back and read that first. This article is going to pick up where the […]
by community-syndication | Jul 1, 2010 | BizTalk Community Blogs via Syndication
Question: Suppose you want to test an activity that uses WriteLine and you want to verify the output. How do you do it?
Answer: Add a StringWriter to the Extensions collection before running your test
Testing this activity
Use this test
[TestMethod]
public void ShouldSayHelloWorld()
{
var wi = new WorkflowInvoker(new HelloWorld());
// The WriteLine activity will use an extension
// of type TextWriter instead of the Console
// if it finds one
var writer = new StringWriter();
wi.Extensions.Add(writer);
wi.Invoke();
Assert.AreEqual("Hello\r\nWorld\r\n", writer.ToString());
}
But… what if you had 100 lines of text? It would get pretty tricky to deal with the writer text. In that case, you could split the buffer into an array of strings using Regex which makes it much easier to work with.
[TestMethod]
public void ShouldSayHelloWorldUsingRegex()
{
var writer = new StringWriter();
var wi = new WorkflowInvoker(new HelloWorld());
wi.Extensions.Add(writer);
wi.Invoke();
// If you have a lot of text to verify
// splitting the writer into an array of strings
// makes it easier to deal with
string[] lines = Regex.Split(writer.ToString(), Environment.NewLine);
Assert.AreEqual(3, lines.Length);
Assert.AreEqual("Hello", lines[0]);
Assert.AreEqual("World", lines[1]);
// There is always 1 blank line at the end
Assert.AreEqual(string.Empty, lines[2]);
}
by community-syndication | Jul 1, 2010 | BizTalk Community Blogs via Syndication
Introduction
The Unstandard Tag Library is a JSP tag library that was developed as part of the Jakarta Project. Its purpose is to provide a collection of useful tags that people have been requesting for JSTL. The library serves as a keep all of these tags until they […]
by community-syndication | Jul 1, 2010 | BizTalk Community Blogs via Syndication
Introduction
Welcome to my first blog post on the topic of jQuery. This is the first part of a three part series. This post will cover most of the basic features of jQuery. Then next post will wrap up the basic […]
by community-syndication | Jul 1, 2010 | BizTalk Community Blogs via Syndication
On 23 april I took the WCF 4.0 beta exam 71-513.
86 questions plus questions review…
In my opinion, the questions covered every feature (including the new ones).
To me, the REST questions were the most difficult, maybe because this is the feature I use least on projects. If you want to pass, don’t forget to study the new 4.0 features!
Today I received a mail from Microsoft that I passed the exam 🙂
Peter Borremans