Ejemplo n.º 1
0
        public SistemaSolarControllerTest()
        {
            consultaClimaService = new ConsultaClimaServiceFake();
            var mockMapper = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile(new CondicionClimaticaProfile());
            });

            mapper     = mockMapper.CreateMapper();
            controller = new SistemaSolarController(consultaClimaService, mapper);
        }
Ejemplo n.º 2
0
 public SistemaSolarController(IConsultaClimaService consultaClimaService, IMapper mapper)
 {
     this.consultaClimaService = consultaClimaService;
     this.mapper = mapper;
 }