public async Task Test_Try_To_Create_Null_Device()
        {
            CreateOrUpdateDeviceDTO device = null;

            var mockRepository = new Mock <IDeviceRepository>();
            var mockMapper     = new Mock <IMapper>();

            var deviceController = new DeviceController(mockRepository.Object, mockMapper.Object);

            var actionResult = await deviceController.CreateOrUpdateDevice(device) as BadRequestObjectResult;

            Assert.Equal(400, actionResult.StatusCode);
        }
        public async Task Test_Create_Device()
        {
            var device = new CreateOrUpdateDeviceDTO
            {
                Name         = "Testing Device",
                DeviceTypeId = 100
            };

            var mockRepository = new Mock <IDeviceRepository>();
            var mockMapper     = new Mock <IMapper>();

            var deviceController = new DeviceController(mockRepository.Object, mockMapper.Object);

            var actionResult = await deviceController.CreateOrUpdateDevice(device);

            var x = actionResult as OkResult;

            Assert.Equal(200, x.StatusCode);
        }