Esempio n. 1
0
        public async Task ContainsEntityWithMacAsync_WhenCalled_ReturnsTrue()
        {
            // Arange
            MockSensorRepository.Setup(repository =>
                                       repository.ContainsEntityWithMAC("1111", new CancellationToken(false)))
            .ReturnsAsync(() => true);

            // Act
            var result = await _sensorService.ContainsEntityWithMACAsync("1111", CancellationToken.None);

            // Assert
            Assert.True(result);
        }