You can able to do that, there are two options from where you can able to do it:
1. You can create an interface so that you can able to hide the storage library. You can abstract the storage library.
2. Another option is that, you can make use of some framework like TypeMock that will help you without any interfaces.
I hope this will help.
Want to become an Azure expert? join azure architect certification now!!