public void GivenAContainer()
        {
            var mediaBuilder = new MediatorBuilder();

            mediaBuilder.RegisterHandlers(TestUtilAssembly.Assembly)
            .ConfigureCommandReceivePipe(x =>
            {
                x.UseSimpleMiddleware();
            });
            _container = new Container();
            StructureMapExtensions.Configure(mediaBuilder, _container);
        }
Exemple #2
0
        void GivenAContainer()
        {
            ClearBinding();
            var mediaBuilder = new MediatorBuilder();

            mediaBuilder.RegisterHandlers(TestUtilAssembly.Assembly)
            .ConfigureCommandReceivePipe(x =>
            {
                x.UseSimpleMiddleware();
            });
            _container = new Container();
            _container.Configure(x =>
            {
                x.ForConcreteType <SimpleService>();
                x.ForConcreteType <AnotherSimpleService>();
            });
            StructureMapExtensions.Configure(mediaBuilder, _container);
        }