Ejemplo n.º 1
0
        public void When500ResponseIsReturned_ApplicationExceptionIsThrown()
        {
            var broker = new ScryfallBroker(_restfulApiClientMock500Response.Object, _mapper);

            FluentActions.Invoking(async() => await broker.GetSetFromId(_setId)).Should()
            .Throw <CommunicationException>();
        }
Ejemplo n.º 2
0
        public async Task WhenSetDataIsLoaded_CardListIsReturned()
        {
            var broker = new ScryfallBroker(_restfulApiClientMockFullResponse.Object, _mapper);

            var result = await broker.GetSetFromId(_setId);

            result.MagicCards.Count().Should().Be(40);
        }