Example #1
0
        public async Task should_get_all_cards()
        {
            // arrange
            List <Card> cards = null;

            // act
            cards = await _client.GetCards();

            // assert
            cards.Should().NotBeNullOrEmpty();
        }
Example #2
0
        public async Task <IActionResult> Index()
        {
            HearthstoneClient client = new HearthstoneClient();

            return(View(await client.GetCards()));
        }