At d-fens we usually use JetBrains TeamCity as a build server. Because one of our customers uses Jenkins as build server I had the chance to set up a build job for one of our C#/.NET projects on Jenkins. The project I mentioned is a C#/.NET Web Application built with Visual Studio 2013. For testing we make use of the […]
In one of our projects we started using Service Bus for Windows Server 1.1. After the installation and configuration we searched for a tool to visualize the local Service Bus […]
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 […]
Todays blog post shows how to set up a build configuration on a JetBrains TeamCity 9.1 server that creates and publishes a NuGet package of a C#/.NET-Project. Build Configuration Setup […]
While working with OData controllers I came accross a challenge concerning authentication. The used authentication mode is Windows Authentication. I wanted to invoke an OData controller through a service reference from another OData controller with the user of the original call. The user of the original call has to be impersonated because the controller encapsulated as a service reference checks, […]
To etablish the principle of Behaviour Driven Development in our development process we searched for a possibility to verify, if an acceptance criteria is fullfilled or not. Because we usually host our repositories at GitHub we decided to use the GitHub issue tracker to describe our features and acceptance criterias. Setup Issues As a first step the following two additional […]
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 – […]
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 […]
Prerequisites The following requirements have to be met for creating a build job for a C# project. Running TeamCity instance (Setup manual can be found here) MS Build Tools have […]
[UPDATE 2014-10-21] the code and the assembly are now available under Apache 2.0 license on GitHub at https://github.com/dfch/biz.dfch.CS.System.Utilities [UPDATE 2014-12-10] see below for further details on this issue and a workaround to this that does not need PSRemoting Recently I observed a strange bug that occured when trying to invoke a PowerShell job via the Windows Task Scheduler. In my […]
As you might have already heard and tried out with .NET 4.5 (or so) Microsoft blessed us with a new and shiny HttpClient that should be easier to use, support async programming and (that’s best) finally allow the user to set any headers without reverting to some workaround code (cf. WebClient and its underlying classes). And it is actually true […]
This is a rather quick one and I am merely writing it down as I tend to forget … If you need a quick way to get a hex representation in string form (of a byte array or any string) you can use this fragment. You certainly can combine this with some hash computation if you do not want a […]