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(); }
public void Dispose() { InPortContextFactory.Destroy(Context); }