public void Setup()
        {
            _requestStatisticService = A.Fake <IWebsiteSpeedStatisticService>();
            _mapper = A.Fake <IMapper>();
            _logger = A.Fake <ILogger <WebsiteSpeedStatisticController> >();

            _websiteStatisticController = new WebsiteSpeedStatisticController(_requestStatisticService, _mapper, _logger);
        }
コード例 #2
0
 public WebsiteSpeedStatisticController(
     IWebsiteSpeedStatisticService websiteSpeedStatisticService,
     IMapper mapper,
     ILogger <WebsiteSpeedStatisticController> logger)
 {
     _websiteSpeedStatisticService = websiteSpeedStatisticService;
     _mapper = mapper;
     _logger = logger;
 }