public async Task CheckVeicleExist() { //Act var veicles = await veicleProvider.VeiclesAsync(); var veicle = veicles.FirstOrDefault(); var exist = await veicleProvider.GetById(veicle.Id); Assert.NotNull(exist); Assert.IsType <Veicle>(exist); }
public async Task <ICollection <Veicle> > VeiclesAsync() { return(await veicleProvider.VeiclesAsync()); }