public void Setup() { _requestStatisticService = A.Fake <IWebsiteSpeedStatisticService>(); _mapper = A.Fake <IMapper>(); _logger = A.Fake <ILogger <WebsiteSpeedStatisticController> >(); _websiteStatisticController = new WebsiteSpeedStatisticController(_requestStatisticService, _mapper, _logger); }
public WebsiteSpeedStatisticController( IWebsiteSpeedStatisticService websiteSpeedStatisticService, IMapper mapper, ILogger <WebsiteSpeedStatisticController> logger) { _websiteSpeedStatisticService = websiteSpeedStatisticService; _mapper = mapper; _logger = logger; }