This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| c.For<IManageUnitsOfWork>() | |
| .Use<RavenUnitOfWork>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class RavenUnitOfWork : IManageUnitsOfWork | |
| { | |
| readonly IDocumentSession session; | |
| public RavenUnitOfWork(IDocumentSession session) | |
| { | |
| this.session = session; | |
| } | |
| public void Begin() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var store = new DocumentStore { Url = "http://localhost:8080" }; | |
| store.Initialize(); | |
| ObjectFactory.Configure(c => | |
| { | |
| c.For<IDocumentStore>() | |
| .Singleton() | |
| .Use(store); | |
| c.For<IDocumentSession>() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface IManageUnitsOfWork | |
| { | |
| /// <summary> | |
| /// Called before all message handlers and modules | |
| /// </summary> | |
| void Begin(); | |
| /// <summary> | |
| /// Called after all message handlers and modules | |
| /// </summary> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8" ?> | |
| <configuration> | |
| <configSections> | |
| <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/> | |
| </configSections> | |
| <log4net debug="false"> | |
| <appender name="console" type="log4net.Appender.ConsoleAppender"> | |
| <layout type="log4net.Layout.PatternLayout"> | |
| <param name="ConversionPattern" value="%d [%t] %-5p %c [%x] <%X{auth}> - %m%n"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace NamedInstancesBug | |
| { | |
| using NUnit.Framework; | |
| using StructureMap; | |
| [TestFixture] | |
| public class When_missing_named_instance_handler_is_invoked | |
| { | |
| [Test] | |
| public void Should_pass_the_name_of_the_named_instance_to_the_context() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Subject("Inviting known users")] | |
| public class When_adding_a_member_that_already_has_a_open_invite_for_institution : HandlerConcern<InviteMemberToInstitutionEntitlementHandler> | |
| { | |
| static readonly string email = "email@server,com"; | |
| static readonly Guid institutionEntitlementId = Guid.NewGuid(); | |
| Establish context = () => | |
| { | |
| session.Store(new EntitlementInvitationsView | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [TestFixture] | |
| public class When_a_endpoint_with_a_unknown_faultstore_starts_up | |
| { | |
| IHandleMessages<EndpointStarted> _handler; | |
| StructureMapAMC<EnsureFaultMonitoringOnEndpointStartup> _autoMocker; | |
| IFaultStoreMonitor _monitor; | |
| [SetUp] | |
| public void SetUp() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0"?> | |
| <configuration> | |
| <appSettings> | |
| <add key="NumberOfWorkerThreads" value="1"/> | |
| <add key="DataInputQueue" value="distributorDataBus"/> | |
| <add key="ControlInputQueue" value="distributorControlBus"/> | |
| <add key="ErrorQueue" value="error"/> | |
| <add key="StorageQueue" value="distributorStorage"/> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <section name="RijndaelEncryptionServiceConfig" type="NServiceBus.Config.RijndaelEncryptionServiceConfig, NServiceBus.Core"/> | |
| Then add the following to the both configuration files: | |
| <RijndaelEncryptionServiceConfig Key="gdDbqRpqdRbTs3mhdZh9qCaDaxJXl+e7"/> |