Пример #1
0
        public SistemaSolarControllerTest()
        {
            consultaClimaService = new ConsultaClimaServiceFake();
            var mockMapper = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile(new CondicionClimaticaProfile());
            });

            mapper     = mockMapper.CreateMapper();
            controller = new SistemaSolarController(consultaClimaService, mapper);
        }
Пример #2
0
 public SistemaSolarController(IConsultaClimaService consultaClimaService, IMapper mapper)
 {
     this.consultaClimaService = consultaClimaService;
     this.mapper = mapper;
 }