Have MessagePactBuilder with pactDir set to @"c:\pactDir"
Call Builder.BuildAsync().Wait();
Expect : file created at c:\pactDir
Result: c:\pactDir empty and file created at c:\ with directory as prefix.
Solution:
Fix PactWriter line 34 from:
File.WriteAllText($"{pactDir}{pact.Consumer.Name}-{pact.Provider.Name}.json",
to:
File.WriteAllText($"{pactDir}{Path.DirectorySeparatorChar}{pact.Consumer.Name}-{pact.Provider.Name}.json",
PS. It will be nice to open repository for subbranhcing , so we will be able so submit pr's
Have MessagePactBuilder with pactDir set to @"c:\pactDir" Call Builder.BuildAsync().Wait(); Expect : file created at c:\pactDir Result: c:\pactDir empty and file created at c:\ with directory as prefix.
Solution: Fix PactWriter line 34 from:
File.WriteAllText($"{pactDir}{pact.Consumer.Name}-{pact.Provider.Name}.json",
to:File.WriteAllText($"{pactDir}{Path.DirectorySeparatorChar}{pact.Consumer.Name}-{pact.Provider.Name}.json",
PS. It will be nice to open repository for subbranhcing , so we will be able so submit pr's