public static MockedDbContext <T> GetMockedDbContext <T>() where T : DbContext
        {
            var instance = new MockedDbContext <T>();

            instance.MockTables();
            return(instance);
        }
        public OrderHandlerTests()
        {
            eventContext = new EventProvider();

            var mockOrderContext = new MockedDbContext <OrderContext>();

            projectionContext = new ProjectionProvider();

            mockOrderContext.MockTables();

            orderContext = mockOrderContext.Object;

            var mappingConfig = new MappingConfig();

            orderHandler      = new OrderHandler(mappingConfig.Mapper, mockOrderContext.Object, eventContext, projectionContext);
            mappingTestConfig = new MappingTestConfig();
        }