gregoryyoung/m-r

Use ReflectionMagic and get rid of InfrastructureCrap.DontBotherReadingItsNotImportant.cs

JohannesHoppe opened this issue · 2 comments

see the evil this.AsDynamic() which is used to call one of the Apply() methods of the aggregate root (in our case InventoryItem.Apply())

@davidebbo (author of the referenced blogpost) developed this to a full nuget package:
https://github.com/davidebbo/ReflectionMagic
we should use this and get rid of InfrastructureCrap.DontBotherReadingItsNotImportant.cs 😄

This is not an attempt at creating a framework you can reuse, it is an example of how things can work.

I see! ;-)