Tag Archives: Code

Code generation from Visual Studio UML class diagram

In the Ultimate edition of Visual Studio 2010 Microsoft has put the Architecture feature. With this I can create Graphs, Layer and UML diagrams. The feature is readonly in the Premium edition, but I’m not sure it can generate code … Continue reading

Posted in Development | Tagged , , , , , , , , , , , , , , , | 1 Comment

WSDL in Mono

Mono can host WCF services and expose the WSDL. To get around the XmlSchema error: Named item http://your/contract/here was already contained in the schema object table you need to set MONO_STRICT_MS_COMPLIANT to ‘yes’. Here is how I managed to do … Continue reading

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

Trace to Windows EventLog

In dotNET we use the System.Diagnostics.Trace and some TraceListerner implementation to log information, warnings and errors. My applications use the Windows Eventlog with the EventLogTraceListener. But what if your custom EventSource is not available and your user has no administrative … Continue reading

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

Custom AutomationPeer classes

When you use custom controls in your silverlight application, you should implement custom AutomationPeer classes. These AutomationPeer classes will be used in your unittests. Below some different flavours I use in my project. Inherited, when you inherit from a control … Continue reading

Posted in Test | Tagged , , , , , | 6 Comments

Silverlight unittest / automation

Reading up on silverlight unittesting from Justin Angel’s post. I ran into some startup problems like not iheriting from SilverlightTest in my test class (took me two hours ;)) and adding the right assemblies to our project. But the biggest … Continue reading

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