예제 #1
0
        public void When_using_a_custom_DbContext_then_it_is_available_in_UnitOfWork_resources()
        {
            var projector = new Projector <Order.CreditCardCharged>(() => new ReadModels1DbContext())
            {
                OnUpdate = (work, charged) => { work.Resource <ReadModels1DbContext>().Should().NotBeNull(); }
            };

            projector.UpdateProjection(new Order.CreditCardCharged
            {
                Amount = Any.PositiveInt()
            });
        }