public ICameraService TestCameraLogin() { var cameraService = new CameraService(); Assert.NotNull(cameraService); var loginResult = cameraService.Login(new CameraLoginRequest() { IP = "192.168.8.170", LoginPort = 8000, UserName = "******", Password = "******", ChannelNo = 1 }); Assert.True(loginResult.Success); return(cameraService); }