Exemplo n.º 1
0
 /// <summary>
 /// Get starships from the API async.
 /// </summary>
 /// <returns>List of @StarsgipModel</returns>
 public static List <StarshipModel> GetStarshipsAsync() => Swapi.GetStarshipsAsync().Result;
Exemplo n.º 2
0
        public async Task NullSpaceshipURL_ShouldThrowNullSpaceshipShipURLException()
        {
            HerperExtension.StarshipsURL = string.Empty;

            await Assert.ThrowsAsync <CustomExceptions.NullSpaceshipShipURLException>(() => Swapi.GetStarshipsAsync());
        }