/// <summary> /// Get starships from the API async. /// </summary> /// <returns>List of @StarsgipModel</returns> public static List <StarshipModel> GetStarshipsAsync() => Swapi.GetStarshipsAsync().Result;
public async Task NullSpaceshipURL_ShouldThrowNullSpaceshipShipURLException() { HerperExtension.StarshipsURL = string.Empty; await Assert.ThrowsAsync <CustomExceptions.NullSpaceshipShipURLException>(() => Swapi.GetStarshipsAsync()); }