WithMappings path is null on Build() call #634

Closed
opened 2025-12-29 08:31:31 +01:00 by adam · 2 comments
Owner

Originally created by @mantasburokas on GitHub (Oct 1, 2024).

Originally assigned to: @StefH on GitHub.

Describe the bug

After upgrading to 1.6.5 WithMappings no longer works because on Build() call the _staticMappingsPath is null.

Expected behavior:

_staticMappingsPath is not null on Build() call

Test to reproduce

    var wireMock = new WireMockContainerBuilder()
        .WithMappings($"{AppDomain.CurrentDomain.BaseDirectory}")
        .WithPortBinding(5000, 80)
        .Build();
Originally created by @mantasburokas on GitHub (Oct 1, 2024). Originally assigned to: @StefH on GitHub. ### Describe the bug After upgrading to 1.6.5 WithMappings no longer works because on Build() call the _staticMappingsPath is null. ### Expected behavior: _staticMappingsPath is not null on Build() call ### Test to reproduce var wireMock = new WireMockContainerBuilder() .WithMappings($"{AppDomain.CurrentDomain.BaseDirectory}") .WithPortBinding(5000, 80) .Build();
adam added the bug label 2025-12-29 08:31:31 +01:00
adam closed this issue 2025-12-29 08:31:31 +01:00
Author
Owner

@StefH commented on GitHub (Oct 1, 2024):

Hello @mantasburokas, thank you for noticing this bug. I'll to fix it.

@StefH commented on GitHub (Oct 1, 2024): Hello @mantasburokas, thank you for noticing this bug. I'll to fix it.
Author
Owner

@StefH commented on GitHub (Oct 1, 2024):

https://github.com/WireMock-Net/WireMock.Net/pull/1187

@StefH commented on GitHub (Oct 1, 2024): https://github.com/WireMock-Net/WireMock.Net/pull/1187
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net#634