-
Pact: Mixed topics
Pact.NET related topics Consumer unit test Example of a GET API call with parameters If you are developing a Pact unit test and your pact.VerfiyAsync() method throws an exception and cannot figure out why you might activate the mock provider debugging logs (see Enabling the mock provider debugging logs) Having more verbose logs in the…
-
WordPress: Show/hide text
Here in this post we take a look on some methods to make parts of a post or page content invisible. The first approach offers a link to the user, for example “Click to see details”, which allows the user to click on the list and expand its hidden content to see more infos. The…
-
PowerShell: Mixed topics
Showing the current OS Get-ComputerInfo Commands File System Commands Showing the path of the current directory Get-Location Showing the content of the current directory Get-ChildItem The same recursively and with filter capability The following command lists all files files matching the filter criteria inside the folder cypress recursively: Get-ChildItem -Path “cypress” -Filter *cy.ts -Recurse The…
-
Android Studio: Mixed topics
Opening an Android Studio project Directly from the file system As the following discussion shows, it does not seem to be possible to open an Android Studio project directly from the file system by double-clicking a file, in a similar way like is known from Visual Studio and .sln files: https://stackoverflow.com/questions/20906503/what-is-the-extension-of-a-android-studio-project-file So it seems we…
-
Flutter/Dart: Developing and deploying a simple App
Overview Here in this post, we document a simple app to measure behaviours over time. The app will have two pages (routes). One for entering data (counting behaviour/activity events), the other one for showing the data as curves, the number of behavioural events over time periods. The entered data will be at first hard coded,…
-
Docker: Mixed topics
Installing Docker Installing Docker on Ubuntu 20.04 sudo apt install docker.io Container configuration Network configuration Adding entries to containers /etc/hosts file You can add a new entry to /etc/hosts file of a Linux based docker container by using the –add-host option of the docker run command: docker run –add-host somedomainname:someipaddesssomeiamge Handling images Showing Docker images…
-
Flutter/Dart: Changing pages
Here in this post we discuss how to create an App which allows to navigate back and fort between different pages. We begin with a simple hello world app: This code results in the following screen ( You can execute it in https://dartpad.dev/ or in your favourite SDK) we see the following screen: We have…
-
Flutter/Dart: Columns & Rows
In this post we try to understand how layout columns and rows work in flutter. We begin with the following “Hello World” example: If we execute this code ( for example in https://dartpad.dev/ ) we see the following screen: Next we want to see how the Column widget works. The Column is a widget whose…
-
Pact: bi-directional contract testing
Introduction The idea of bi-directional contract testing is a kind of contract testing which is neither consumer nor provider driven, rather each side, consumer and provider define their requirement (consumer side) resp. capabilities (provider side) and then the contract testing framework (e.g., pact) cross check the consumer requirements against provider capacities. This allows a very…
-
Pact: Bi-Directional .NET example
Introduction This post is a report of my experience trying to go through the Pact.NET Bi-Directional examples (which are compatible to eachother) provided by Pactflow community/team: Provider example: https://github.com/pactflow/example-bi-directional-provider-dotnet Consumer example: https://github.com/pactflow/example-bi-directional-consumer-dotnet I just decided to post this, in case it would be helpful to anybody trying to go through the same examples. Provider I’ve…