Skip to content

Category: Various Products

This category contains technical information about various products from different manufacturers and sources.

C#/.NET 0

Using CodeContracts with OData Controllers and Web.Api Exception Filters

When writing ODATA controllers for our projects we spend quite some time on writing boilerplate code and input parameter validation. In addition, for our error handling we would like detailed information for internal troubleshooting but not so detailed information sent back to the client (i.e. no stack traces). In order to achieve this without extra work we started looking at […]

PowerShell 0

[NoBrainer] Invoke-Pester from your Visual Studio IDE as an External Tool

You might have heard of the recently added support for PowerShell development inside Visual Studio. This extension provides several features, with support for the Pester testing framework being one of them. However, it seems that sometimes the Visual Studio 2013 just does not recognise your test scripts (even when they are named like SomeScript.Tests.ps1). As a quick workaround you can […]

C#/.NET 0

Unit Testing OData Controllers with the Katana TestServer and Service References

Today I would like to quickly present you how to unit test Web.API based OData Controllers the easy way. On biz.dfch.CS.Examples.Odata you find a complete code example and some accompanying information. The idea is based on the following information (and slightly enhanced): * Unit Testing Web API OData Services – Part 1 * Unit Testing Web API OData Services – […]

C#/.NET 0

Telerik JustMock in Action

While searching for a mocking framework for C# .NET we of d-fens stumbled over JustMock. JustMock is a mocking framework for unit testing developed and maintained by Telerik. Besides JustMock Telerik provides a huge palette of development tools. The probably most popular tool developed by them is Fiddler. Now let’s go back to JustMock. There are two versions of JustMock […]

Various Products 0

Limitations when running Activiti in H2 Embedded Mode

While playing around with the docker image eternnoir/activiti I had some troubles accessing deployments, process instances and other data created in activiti explorer over the REST endpoint. It took me some time to find out why the data from explorer was not accessible over REST. If nothing else specified activiti runs with an embedded H2 database. For playing around and […]

Various Products 0

[NoBrainer] Allman codestyle and gitignore for Java IntelliJ

The following xml-file describes the Allman code style for IntelliJ IDEA and the Java-File below shows an example of the code style. <code_scheme name="allman"> <XML> <option name="XML_LEGACY_SETTINGS_IMPORTED" value="true" /> </XML> <codeStyleSettings language="JAVA"> <option name="KEEP_FIRST_COLUMN_COMMENT" value="false" /> <option name="KEEP_BLANK_LINES_BEFORE_RBRACE" value="1" /> <option name="BLANK_LINES_AFTER_CLASS_HEADER" value="1" /> <option name="BRACE_STYLE" value="2" /> <option name="CLASS_BRACE_STYLE" value="2" /> <option name="METHOD_BRACE_STYLE" value="2" /> <option name="CATCH_ON_NEW_LINE" value="true" /> […]

Technology 0

Configure SSO on VMware NSX using the API

This is just a very short post about the problems I was facing while trying to configure SSO on NSX Manager using the API. The NSX API documentation contains following: POST https://<nsxmgr-ip>/api/2.0/services/ssoconfig Request Body: While testing with this call I always got a http error 403 back. However the credentials used to authenticate against NSX Manager API and the ssoAdminUsername with ssoAdminUserpassword […]