Cloud storage studio 2010.09.23.00 update

I’m using Cloud Storage studio in my Azure project. I’ve posted before about this tool here and here #2. Now there is a update. New features are:

  • Drag-and-drop for uploading blobs. Before the upload starts you still have to confirm them in the upload window.
  • Max recordcount for a query and filter. Neat feature for those big logging tables.

Check out the update on the website of Cerebrata.

Posted in Tooling | Leave a comment

Implement abstract class not possible

For my unittests I want to use Moles to run the tests outside the Windows Azure development factory. By making a mole assembly for Microsoft.WindowsAzure.ServiceRuntime I would be on my way. But I’m getting strange error messages: there is no stub being generated for Microsoft.WindowsAzure.ServiceRuntime.RoleInstance and I cannot implement it myself.

public abstract class RoleInstance
    {
        public abstract int FaultDomain { get; }
        public abstract string Id { get; }
        public abstract IDictionary<string, RoleInstanceEndpoint> InstanceEndpoints { get; }
        public abstract Role Role { get; }
        public abstract int UpdateDomain { get; }
    }

The object contains only property get operations and is defined as an abstract class. Implementing the property get operations gives me error messages about not implementing the property set operations. Implementing the property set operations gives me error messages error messages about the property set operations not being defined in the (abstract) base class and cannot be overwritten.
[/edit]
I used Reflector to look at te code. I noticed every property had an internal set operation. Looks like the compiler wants to do something with this, bus doesn’t know what. That explains the error messages. Maybe my post with Microsoft resolves this issue.
[/edit]
Peli admits this is a strange situation and sees no resolution in Moles in the near future. So for now no Moles for Windows Azure.

Posted in Test | Tagged , , , , , , , | Leave a comment

Usefull unittest links

While updating my unittest I found two challenges:
1. Start the development fabric from my unittest solution

// Reference Microsoft.ServiceHosting.Tools.dll in the Windows Azure SDK folder.
DevStore ds = new DevStore();
// IsRunning checks whether the service is running.
if (false == ds.IsRunning())
{
     // EnsureRunning will try to start the service if it's not running.
     ds.EnsureRunning(1000);
}

2. Compare byte arrays solution

byte[] array1 = new byte[] { 1, 2, 3, 4 };
byte[] array2 = new byte[] { 1, 2, 3, 4 };
bool areEqual = array1.SequenceEqual(array2); //returns true
Posted in Test | Tagged , , , , , , | Leave a comment

Track active item in solution explorer

Back from vacation. Login and get the latest version of the sources. Because I have a solution of my own I could expect it: builderrors. A neat feature I use in these cases is Track Active Item in Solution Explorer. The active file in VS2010 is selected in the solution explorer. I find it usefull to see in which project I work as the solution contains 150+ projects. More info on the micorosft blog here.

Posted in Tooling | Leave a comment

SOAP UI

Another must have tool for WCF / SOA development is SOAP UI http://www.soapui.org/.
With this java tool it’s possible te send messages to the service only by pointing it to the WSDL of the service. This simulates a real client. Every message can be eddited before sending it to the service, so you can put in your testdata or send malformed messages.

Posted in Tooling | Tagged , | Leave a comment