public Task AddMemberStockAsync(string memberEmail, CountryKind country, string stockID, BuySellStrategyType strategy, bool isNotify)
        {
            MemberStock stock = new MemberStock(memberEmail, country, stockID, isNotify, strategy);

            MemberStockTable.Add(stock);

            return(Task.CompletedTask);
        }
Пример #2
0
        private async Task BuyOperationInternal(CancellationToken token)
        {
            IMemberStock memberStock = new MemberStock(_dummyEmail, _baseData.Country, _stockId, true);

            // create BuyRunner and run
            // TODO : ICurrentPriceStorage ?
            TurtleBuyStrategy buyRunner = new TurtleBuyStrategy(memberStock, _baseData, true);

            await buyRunner.ExecuteAsync(token).ConfigureAwait(false);
        }