Skip to main content

MongoDB Realm – Simple example

MongoDB Realm database

Here is a simple example on how to use MongoDB Realm with C#. What is MongoDB Realm? MongoDB Realm will combine Realm, the popular mobile database and data synchronization technology, and MongoDB Stitch, the serverless platform for MongoDB, into a unified solution that makes it easy for you to build powerful and engaging experiences on […]

Xamarin IOS – Manage InputTextView size and scrolling

xamarin ios scrolling inputtextview

Introduction This post is linked to my previous one about the keyboard (available here). The idea now is to manage InputTextView size and scrolling correctly. It’s a nightmare to scroll inside a small input. That is the reason why the scrolling is disabled until the height reach the middle of the screen. In the screenshot […]

C# – Custom Attribute

Custom attribute

In this article, we will see together how to create our own custom attribute with C#, and then get the value of it thanks to reflection through a simple example. What is an Attribute? An attribute is basically a metadata object used to provide declarative information to a class, property, enum, … You can retrieve […]

Hangfire – Recurring tasks under a minute

hangfire cron job

Introduction What is Hangfire? “An easy way to perform background processing in .NET and .NET Core applications. No Windows Service or separate process required.” https://www.hangfire.io/ Basically, we needed to replace our “good” old Microsoft WorkFlow’s by something else. And the decision has been made; we will use Hangfire! What is the problem with Hangfire? It […]

C# – Moq tutorial for beginners

Unit Testing with MOQ

What is Unit Testing? Unit Testing is a very important part of coding. It consumes time and efforts, but it worth it. Thanks to Unit Testing you will feel more confident and you will know that your code is working. Of course testing everything is almost impossible, but at least the normal cases and some […]

C# – Directory.GetFiles – mock files for Unit Tests

moq

It is common to use Directory.GetFiles from the System.IO. But it’s a bad habbit! We should be able to Unit Test our methods. Here is a simple way to do it. In this article I will use MOQ, if you don’t know it, please check this post about Unit Testing with MOQ. Instead of using […]