Ejemplo n.º 1
0
        private static void BikeList()
        {
            string template = "ID: {0,-3} | Preço: {1,-12} | Modelo:{2,4}";

            bikeController.GetBikes().ToList <Bike>().ForEach(v =>
                                                              Console.WriteLine(String.Format(template, v.Id, v.Valor.ToString("C2"), v.IdModelo)));

            var bikeQuerys = bikeController.GetBikes();
            //var modeloQuerys = modeloController.GetModelos();

            //var queryResult = from bike in bikeQuerys
            //                  join modelo in modeloQuerys on bike.IdModelo equals modelo.Id
            //                  select bike;

            //foreach (var item in queryResult)
            //{

            //}
        }
Ejemplo n.º 2
0
 public void GetBikes_Calls_GetBikes_In_Service()
 {
     bikesController.GetBikes();
     mockService.Verify(s => s.GetBikes(), Times.Once);
 }