Let's go invent tomorrow instead of worrying about what happened yesterday|mail@jankowskimichal.pl

Michał Jankowski

avatar

About Michał Jankowski

Microsoft MVP Azure, an architect, designer, team leader and trainer. He began programming in the early ’90s from Basic and Assembler for 8-bit computers. During most of his career, he was delivering .NET platform targeted application for the world’s largest companies. Currently, he is specialising in the development of web applications and Azure environment. A great enthusiast of software craftsmanship, unit testing, software design and other topics related to software development. In his free time, when he is not playing with the code, he likes travelling, photography and writing a technical blog.

Moq.EntityFramework.Helpers NuGet package

As you probably know I wrote two articles about mocking DbSet<TEntity> with Moq: synchronous calls – Mocking DbContext and DbSet with Moq asynchronous calls – EntityFramework – asynchronous queries unit tests I combined those solution to one library and published in on NuGet – Moq.EntityFramework.Helpers. […]

By |2017-03-07T22:07:45+01:007 March 2017 |Categories: Projects, Testing|Tags: , , , , , |2 Comments

EntityFramework – asynchronous queries unit tests

Sometime ago I described how we can use Moq to unit tests elements of DbContext – please check post Mocking DbContext and DbSet with Moq. Unfortunate that post didn’t covered all issues related to that topic. I didn’t write about unit tests asynchronous queries. Today I want to come back to this issue. We can treat a previous post as a starting point. We already have some code that help us to mock DbSet<T>. And right now we will extend that code to support asynchronous queries. It is very easy. We need only to implement IDbAsyncQueryProvider interface: public class InMemoryAsyncQueryProvider<TEntity> : IDbAsyncQueryProvider { private readonly IQueryProvider innerQueryProvider; [...]

By |2017-03-05T09:04:23+01:005 March 2017 |Categories: Software development|Tags: , |0 Comments

Get Noticed! – Short introduction

A few days ago second edition Get Noticed! has started. From the beginning I wanted to be part of this competition community. The idea is great! Unfortunate as usual taking decision was not so easy. The main blocker was my calendar. In that time all of my weekends are busy. Moreover I am planning two foreign trips. One of them will be longer. Finally I decided to take part in it – a small motivation factor was that I tried to convince Jurka to take part in this competition. Finally I decided to take part in it. It seems that it will [...]

By |2017-03-04T15:02:53+01:004 March 2017 |Categories: Projects|Tags: |0 Comments

Upgrade from ASP.NET Core 1.0.x to 1.1

New version of .NET Core 1.1 has been published on 17th November. Together with it new versions of ASP.NET and EntityFramework have been introduced. I wanted to update my application to new framework. I thought that it will be very easy. Unfortunate my application didn’t start after update. Moreover it didn’t even compile. Let’s start from the beginning. The first thing you need to do is downloading and installing new SDK and Runtime. You will find installers on .NET Core Downloads webpage. […]

By |2017-02-22T19:50:53+01:0022 February 2017 |Categories: Software development|Tags: |0 Comments

Speeding up AutoFixture

I already mentioned about AutoFixture in one of the posts – Lightning talk – Autofixture. Main goal of this library is to help us with reduction of Arrange part of unit tests. With this library we can focus on the main scenario of unit test instead of focusing on building objects that are needed for test. Moreover AutoFixture will protect us against modification of classes that are being used in our unit tests. But it is not perfect. Sometimes duration of unit tests can increase dramatically. Especially when you are creating objects used by EntityFramework. […]

By |2017-01-31T21:34:37+01:001 February 2017 |Categories: Testing|Tags: , , |2 Comments

.net DD 2016 – materials

Since few weeks ago it is possible to watch sessions from .NET DeveloperDays 2016 on YouTube channel. I think that the best speaker of that conference edition was Ted Neward. I recommend his closing keynote session. It was really great. It is hard to say that this session was technical one. I would rather say that it was more philosophical. During it Ted showed importance of context in scope of taking correct decisions. He provided a lot examples that showed difficultness of taking this one correct solution / decision. It is hard to describe it. I recommend you to watch it.

By |2019-03-10T16:49:45+01:0029 January 2017 |Categories: Software development|Tags: |0 Comments

FluentValidation.Validators.UnitTestExtension

I would like to introduce a new small library that I published – FluentValidation.Validators.UnitTestExtension. Main purpose of this library is to extend and simplify possibilities of testing code that is using FluentValidation package. You can install it by nuget: Install-Package FluentValidation.Validators.UnitTestExtension or download it from GithHub. One of approach of testing Fluent rules is presented in FluentValidation wiki page. You can find there information that FluentValidation comes with two extension methods ShouldHaveValidationErrorFor and ShouldNotHaveValidationErrorFor that can make it easier to write unit tests for validators. […]

Unit tests – materials from trainings for quality engineers

I would like to invite you to familiarize with materials from training about unit tests. This training has been prepared as part of my work duties in Objectivity Bespoke Software Specialists. The main goal of this training was to learn quality engineers that work in Objectivity how to write unit tests. The training has been divided into two parts: Unit Tests - The Beginning – this is an introduction to unit tests; you will learn: what unit tests are, how to develop them correctly, how you can cooperate in project to build better unit tests, how unit tests work. Unit [...]

By |2017-01-18T21:54:10+01:0019 January 2017 |Categories: Conferences / Presentations, Testing|Tags: , |0 Comments

.NET DeveloperDays 2016

Last week I took part in .NET DeveloperDays 2016. Unfortunate I didn’t manage to attend to workshops and I took part only in conference. I wondered how I could summarize this event. I decided that this time I will not describe presentations but I will focus on main reason why I attended to such event. Few years ago this main reason would be presentations. Right now I went there to meet people. And presentations are something like a bonus to networking. In this sense conference was very successful. You could find a lot of space where you could talk to [...]

By |2016-10-28T21:03:23+02:0028 October 2016 |Categories: Conferences / Presentations|Tags: |0 Comments
Go to Top