public void LoadVideoMgmt_returns_correct_model_when_blank_device_is_present() { //Create the shims for test using (ShimsContext.Create()) { //Arrange //Set up a provisioning data ServiceDto var aServiceDto = SetUpTestData("FIDVM"); SetUpShims(aServiceDto); //Act //Call the Controller method var vDc = new VideoDeviceController(); var result = vDc.LoadVideoMgmt("370001704986", "1423153155101", " "); //Assert //Test the values returned by the Controller method const string expectedResult = @"HasMRDVRService :true"; const string deviceResponse = "DeviceActionResponse :{ Code : 200 , Message : },"; TestReturnValue(result, expectedResult, deviceResponse); } }
public void LoadVideoMgmt_returns_correct_response_when_ServiceDto_is_null() { //Create the shims for test using (ShimsContext.Create()) { //Arrange //Set up a provisioning data ServiceDto var aServiceDto = SetUpTestData(null); SetUpShims(aServiceDto); //Act //Call the Controller method var vDc = new VideoDeviceController(); var result = vDc.LoadVideoMgmt("370001704986", "1423153155101", "MA1033FH1921"); //Assert //Test the values returned by the Controller method const string expectedResult = @"HasMRDVRService :false"; const string expectedDeviceResponse = @"DeviceActionResponse :{ Code : 200 , Message : }"; TestReturnValue(result, expectedResult, expectedDeviceResponse); } }
public void LoadVideoMgmt_returns_correct_model_when_USI_Location_And_Device_Are_Null() { //Create the shims for test using (ShimsContext.Create()) { //Arrange //Set up a provisioning data ServiceDto var aServiceDto = SetUpTestData("FIDVM"); SetUpShims(aServiceDto); //Act //Call the Controller method var vDc = new VideoDeviceController(); var result = vDc.LoadVideoMgmt(null, null, null); //Assert //Test the values returned by the Controller method const string expectedResult = @"HasMRDVRService :false"; const string deviceResponse = "DeviceActionResponse :{ Code : 200 , Message : },"; TestReturnValue(result, expectedResult, deviceResponse); } }