// [DataRow(Cloud.Arlington)] - cert not setup
 public async Task WithClientAssertion_Wilson_TestAsync(Cloud cloud, RunOn runOn)
 {
     runOn.AssertFramework();
     await RunClientCredsAsync(cloud, CredentialType.ClientAssertion_Wilson).ConfigureAwait(false);
 }
 // [DataRow(Cloud.Arlington)] - cert not setup
 public async Task WithClientClaims_OverrideClaims_TestAsync(Cloud cloud, RunOn runOn)
 {
     runOn.AssertFramework();
     await RunClientCredsAsync(cloud, CredentialType.ClientClaims_MergeClaims).ConfigureAwait(false);
 }
 //[DataRow(Cloud.PPE)] - secret not setup
 public async Task WithSecret_TestAsync(Cloud cloud, RunOn runOn)
 {
     runOn.AssertFramework();
     await RunClientCredsAsync(cloud, CredentialType.Secret).ConfigureAwait(false);
 }
Beispiel #4
0
 //[DataRow(Cloud.Arlington)] - cert not setup
 public async Task WithCertificate_TestAsync(Cloud cloud, RunOn runOn, bool useAppIdUri = false)
 {
     runOn.AssertFramework();
     await RunClientCredsAsync(cloud, CredentialType.Cert, useAppIdUri).ConfigureAwait(false);
 }
Beispiel #5
0
 // [DataRow(Cloud.Arlington)] - cert not setup
 public async Task WithClientClaims_SendX5C_ExtraClaims_TestAsync(Cloud cloud, RunOn runOn)
 {
     runOn.AssertFramework();
     await RunClientCredsAsync(cloud, CredentialType.ClientClaims_ExtraClaims, sendX5C : true).ConfigureAwait(false);
 }
Beispiel #6
0
 public SystemAttribute(RunOn runOn, params Type[] requiredTypes)
 {
     RunOn         = runOn;
     RequiredTypes = requiredTypes;
 }
Beispiel #7
0
        public IAsyncAction UpdateTicker(Dictionary <string, TickerItem> tickers)
        {
            return(RunOn.ApplicationViewAsync(
                       () =>
            {
                var hasAdded = false;
                foreach (var item in tickers)
                {
                    if (this.Ticker.ContainsKey(item.Key))
                    {
                        if (item.Value.Updated != this.Ticker[item.Key].Updated)
                        {
                            this.Ticker[item.Key].Updated = item.Value.Updated;
                            this.Ticker[item.Key].SellPrice = item.Value.SellPrice;
                            this.Ticker[item.Key].LastTrade = item.Value.LastTrade;
                            this.Ticker[item.Key].BuyPrice = item.Value.BuyPrice;
                            this.Ticker[item.Key].Avg = item.Value.Avg;
                            this.Ticker[item.Key].High = item.Value.High;
                            this.Ticker[item.Key].Low = item.Value.Low;
                            this.Ticker[item.Key].Vol = item.Value.Vol;
                            this.Ticker[item.Key].VolCurr = item.Value.VolCurr;
                            this.Ticker[item.Key].CloseBuyPrice = item.Value.CloseBuyPrice;
                        }
                    }
                    else
                    {
                        var tickerItem =
                            new TickerViewModel
                        {
                            CurrencyPair = item.Key,
                            Updated = item.Value.Updated,
                            SellPrice = item.Value.SellPrice,
                            LastTrade = item.Value.LastTrade,
                            BuyPrice = item.Value.BuyPrice,
                            Avg = item.Value.Avg,
                            High = item.Value.High,
                            Low = item.Value.Low,
                            Vol = item.Value.Vol,
                            VolCurr = item.Value.VolCurr,
                            CloseBuyPrice = item.Value.CloseBuyPrice,
                        };

                        this.Ticker.Add(item.Key, tickerItem);

                        if (tickerItem.CurrencyPair == this.SelectedCurrencyPair)
                        {
                            this.SelectedTicker = tickerItem;
                        }

                        hasAdded = true;
                    }
                }

                if (hasAdded)
                {
                    this.RaisePropertyChanged("Ticker");

                    if (this.Ticker.ContainsKey(this.SelectedCurrencyPair))
                    {
                        this.SelectedTicker = this.Ticker[this.SelectedCurrencyPair];
                    }
                }
            },

                       CoreDispatcherPriority.Low));
        }
Beispiel #8
0
 public TestAttribute(RunOn runOn)
 {
     this.runOn = runOn;
 }