예제 #1
0
        private void AddChannel(out EventChannelRepository eventChannelRepository, out EventChannel channel, int timeout = 30)
        {
            //Arrange
            eventChannelRepository = new EventChannelRepository("ECommerce.Data.FileStore",
                                                                new ConnectionOptions
            {
                Provider         = "FileDb",
                ConnectionString = new FileInfo($"data\\data_{Guid.NewGuid()}.json").FullName
            },
                                                                _loggerFactory, new MyDiagnosticSource());
            var channelService = new EventChannelService
                                 (
                eventChannelRepository
                                 );

            channel = EventChannelRegistrationTests.AddChannel(channelService, timeout);

            channel.Should().NotBeNull();
        }