예제 #1
0
        public async Task CheckVeicleByType()
        {
            var veicles = await veicleProvider.VeiclesAsync();

            var veicle = veicles.FirstOrDefault();

            var typed = await veicleProvider.RetrieveByType(veicle.Name);

            Assert.NotNull(typed);
            Assert.Equal(veicle.Name, typed.Name);
        }
 public Task <Veicle> RetrieveByType(string type)
 {
     return(veicleProvider.RetrieveByType(type));
 }