public void WhenCalled_SetsSingleUseTokenWithConnectionString() { var options = new TableStorageIdentityOptions("ConnectionString"); Assert.NotNull(options.SingleUseToken); Assert.Equal("ConnectionString", options.SingleUseToken.StorageAccountConnectionString); }
public void WhenCalled_SetsTableStoreWithConnectionString() { var options = new TableStorageIdentityOptions("ConnectionString"); Assert.NotNull(options.TableStore); Assert.Equal("ConnectionString", options.TableStore.StorageAccountConnectionString); }
public void WhenCalled_SetsSingleUseToken() { var tableStore = TableStore(); var singleUseToken = SingleUseToken(); var options = new TableStorageIdentityOptions(tableStore, singleUseToken); Assert.Equal(singleUseToken, options.SingleUseToken); }