Example #1
0
        public static arrange The_time_is_before_close_of_trading(this arrange fixtures)
        {
            var date = DateTime.Today.ToString("yyyy-MM-dd");

            return(fixtures.Setup((f) => f.Stocks.SetTimeToCloseTrading($"{date} 23:59:59")));
        }
Example #2
0
 public static arrange I_have_100_shares_of_MSFT_stock_async(this arrange fixtures) =>
 fixtures.Setup(async (f) => await f.Stocks.BuyAsync("MSFT", 100));
Example #3
0
 public static arrange I_have_150_shares_of_APPL_stock(this arrange fixtures) =>
 fixtures.Setup((f) => f.Stocks.Buy("APPL", 150));
Example #4
0
 public static arrange I_have_100_shares_of_MSFT_stock(this arrange fixtures) =>
 fixtures.Setup((f) => f.Stocks.Buy("MSFT", 100));