Пример #1
0
        public async Task ValidFile_UsingGoogleWithSharedKey_ShouldReturnValidConfiguration()
        {
            var instance = new GoogleCloudStorageService(Google_ValidSourceWithSharedKey(), NullLoggerFactory.Instance);
            var content  = await instance.FetchData(null);

            Assert.True(content.HasResult, "Error while fetching data from a SignedUri");
            Assert.True(content.Configuration != null, "Error while deserializing data from a SignedUri");
        }
        public GoogleCloudStorageServiceTest()
        {
            storageClient        = new Mock <StorageClient>();
            googleCloudSettings  = new Mock <IOptionsSnapshot <GoogleCloudSettings> >();
            storageClientWrapper = new Mock <IStorageClientWrapper>();

            googleCloudSettings.Setup(x => x.Value).Returns(new GoogleCloudSettings());
            storageClientWrapper.Setup(x => x.GetStorageClient(It.IsAny <GoogleCloudSettings>())).Returns(storageClient.Object);

            googleCloudStorageService = new GoogleCloudStorageService(googleCloudSettings.Object, storageClientWrapper.Object);
        }
 public void TestInitialize()
 {
     service = new GoogleCloudStorageService();
 }