public async Task CallActionOnBuildWhenComponentRegistrationsDefined()
        {
            IConfigureComponents configureComponents = null;
            var endpoint = await _target.Create(EndpointAddress)
                           .WithTransport <LearningTransport>(tc => tc.StorageDirectory(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)))
                           .WithRegisteredComponents(c => configureComponents = c)
                           .Build();

            configureComponents.Should().NotBeNull();
            configureComponents.Should().BeAssignableTo <IConfigureComponents>();
        }