Mocking azure blob storage in unit tests -


is there anyway can mock azure blob storage without running storage emulator?it of great if shed light on this

the storage library doesn't have interface use mocking, if wanted mock out think have 2 options:

  1. create interface , hide interaction storage library behind class of own. use interface mocked tests. i've done lot of in past, trying abstract use of storage library away rest of app. of course, can abstraction in own code, or storage library out on github. fork , start adding interfaces make mocking easier. think you'd have less work create interface in own code , concrete implementation did necessary work interact storage sub system things specific scenarios.

  2. use mocking framework capable of interception , can mock out types without interfaces. typemock. there others out there well, both free , commercial.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -