How To (12)


How to run xUnit tests on Jenkins

Jenkins does not support running of xUnit tests out of the box. So that you need to run it manually and import test results to Jenkins. This quick manual shows how to do this.




How To: Publish your assembly to private NuGet repository

This is quick guide to manage your NuGet package in your private server. Before going into steps with publishing a NuGet package you need to have prepared assembly. Also you should download NuGet.exe CLI from nuget.org/downloads Steps Command Description Comment nuget.exe spec Create *.nuspec file to describe the package The command should be executed in the folder with […]




How-To Clear NuGet Cache

Just a reminder to myself how to clear NuGet cache. Delete everything at locations: C:\Users\user\AppData\Local\NuGet\ C:\Users\user\.nuget\packages\ C:\Users\user\AppData\Local\Temp\NuGetScratch\ See also: Managing the NuGet cache




How To: Configuration of Azure resources

During configuring resources for the application of several tiers I met obscure points. This articles is just a note which describes those obstacles with the solutions I done. It covers configuring of database access, logging and deployment of Web App and API App.




How To: Giving Presentations

Since the first presentation I gave I’ve noticed several points to remember. There are a lot of articles about the subject “How to give good presentations” in the internet and all of them good. For example, this article on HBR. They give enough inputs to think about. The further text contains a summary of my […]



How To: Running Specflow features with Selenium in Jenkins

This is a short guide how to run Specflow features which use Selenium for interaction with a web site. In our building environment these tests are running in Jenkins. Implementing this you’ll get automated UI-test runner.




How to test WebAPI with In-Memory Hosting

In most cases you want to have integration tests for your WebAPI, but don’t deploy it on IIS. There is an option which allows to skip IIS pipeline and work only with ASP.NET one. You may create an HTTP server in memory and call the same endpoints as usual. This is easy and allows to cover […]




How to extract domain from URL

You want to extract a domain from URL. The list of URLs to support might be as below. For this list you expect the domain sub.domain.com : sub.domain.com/folder?p1=v1 www.sub.domain.com/folder?p1=v1 http://sub.domain.com/folder?p1=v1 https://sub.domain.com/folder?p1=v1 https://www.sub.domain.com/folder?p1=v1 For this list you expect the domain domain.com: domain.com/folder?p1=v1 www.domain.com/folder?p1=v1 http://domain.com/folder?p1=v1 https://domain.com/folder?p1=v1 https://www.domain.com/folder?p1=v1 For this list you expect the domain sub.sub.domain.com: sub.sub.domain.com/folder?p1=v1 www.sub.sub.domain.com/folder?p1=v1 http://sub.sub.domain.com/folder?p1=v1 https://sub.sub.domain.com/folder?p1=v1 […]




How To: Inject custom HTTP headers with Fiddler

When you’re testing a web service or web site with authentication credentials posted via HTTP headers, you might want a way to inject testing credentials without login in. Fiddler could help with that, but its rules need to be configured. Below I’ll describe how to do that Fiddler v4.5 (did not experiment in earlier versions).




How To: Refresh POCO entity from DbContext

If you notice that the context returns the same entity even if it is already changed one line before, you probably what the following

You can use it right after obtaining an entity with a statement like follows: