예제 #1
0
        public QueryTestFixture()
        {
            Context    = InPortContextFactory.Create();
            UnitOfWork = new UnitOfWorkContainer(Context);
            var serviceFactory = new ServiceFactory(type =>
                                                    typeof(IEnumerable).IsAssignableFrom(type)
                    ? Array.CreateInstance(type.GetGenericArguments().First(), 0)
                    : null);

            Bus           = new Mediator(serviceFactory);
            Notifications = new DomainNotificationHandler();
        }
예제 #2
0
 public void Dispose()
 {
     InPortContextFactory.Destroy(Context);
 }