public SistemaSolarControllerTest() { consultaClimaService = new ConsultaClimaServiceFake(); var mockMapper = new MapperConfiguration(cfg => { cfg.AddProfile(new CondicionClimaticaProfile()); }); mapper = mockMapper.CreateMapper(); controller = new SistemaSolarController(consultaClimaService, mapper); }
public SistemaSolarController(IConsultaClimaService consultaClimaService, IMapper mapper) { this.consultaClimaService = consultaClimaService; this.mapper = mapper; }