示例#1
0
        public void ClimateController_GetById_WithNibe_As_Source_Calls_CurrentReading_WithConfigs()
        {
            ClimateItem item = new ClimateItem();

            nibeMock.Setup <ClimateItem>(x => x.CurrentReading(It.IsAny <AppKeyConfig>())).Returns(item);


            IActionResult res = _climateController.GetBySource("Nibe");

            nibeMock.Verify(x => x.CurrentReading(It.IsAny <AppKeyConfig>()), Times.AtLeastOnce());
        }