namespace adas_core.Test.Services; [TestFixture] internal class CameraServiceTest { //CameraService cameraService; //Mock cameraServiceMock; //Mock> logger; //Dictionary cameraSettings; [SetUp] public void Setup() { //cameraSettings = new Dictionary() //{ // { "camHost", "http://localhost:8080" }, // { "camUser", "username" }, // { "camPassword", "password" } //}; //cameraServiceMock = new Mock(); //logger = new Mock>(); //cameraService = new CameraService( // logger.Object // ); // Create a mock of the singleton class subscribers //var mockSingleton = new Mock(); //var subscribers = new List(); // Set up the mock object to return a specific value when a method is called //mockSingleton.Setup(x => x.GetSubscribers()).Returns(subscribers); } //TODO HttpWebResponse test //[Test] public void MaskStream_Return_Ok() { //bool activate = true; //string coordinates = "100,100"; //var expectedResponse = new HttpResponseMessage(); ////cameraServiceMock.Setup(c => c.GrabResponse(It.IsAny(), It.IsAny())).Returns(((string)null)); //// Act //var response = cameraService.MaskStream(activate, coordinates, cameraSettings); //// Assert //Assert.IsNotNull(response); //Assert.AreEqual(expectedResponse.StatusCode, response.StatusCode); //Assert.AreEqual(expectedResponse.Content, response.Content); } }