public void GenerateMappings_ForConfiguredCommandHandlers_ReturnsMappings()
        {
            var userRepository = Mock.Of <IUserRepository>();

            var mappings = new CommandHandlerMappingFactory
                           (
                MappingOptionsTestData.Main.Data,
                userRepository

                           ).CreateMappings();

            mappings.Should().NotBeEmpty();
            mappings.Should().HaveCount(MappingOptionsTestData.Main.Data.Count());
            mappings.Values.Select(n => n.GetType().FullName)
            .Should()
            .BeEquivalentTo
            (
                MappingOptionsTestData.Main.Data.Select(n => n.CommandHandler)
            );
        }
        public void GenerateMappings_ForEmptyRegExCommandHandlers_ReturnsNoMappings()
        {
            var userRepository = Mock.Of <IUserRepository>();


            var mappings = new CommandHandlerMappingFactory
                           (
                MappingOptionsTestData.Empty.Data,
                userRepository

                           ).CreateMappings();

            mappings.Should().BeEmpty();
        }