smartystreets / smartystreets-dotnet-sdk

The official client libraries for accessing SmartyStreets APIs from .Net (C# and CLR-based languages)
https://smartystreets.com/docs/sdk/dotnet
Apache License 2.0
22 stars 20 forks source link

Registering smarty streets with DI - Missing IInternationalStreetClient in 8.4.1 library? #20

Closed xantari closed 4 years ago

xantari commented 4 years ago

I need to register two different clients in both my units tests (need to mock the client) and in my application. One for international addresses and one for US Street addresses)

It appears your source contains IInternationalStreetClient and IUSStreetClient

But when using the 8.4.1 SDK I can't seem to find these anywhere in the library.

How to use with DI without these two interfaces (IInternationalStreetClient and IUSStreetClient)?

mdwhatcott commented 4 years ago

Yes, those marker interfaces were merged as part of PR #18 but hadn't been published in a tagged release. I just published version 8.5.0 to nuget.

xantari commented 4 years ago

Thank you!