public async Task Return_Valid_Sensor_Enumerable_When_MeasureType_Is_Not_Default()
        {
            // Arrange
            contextOptions = new DbContextOptionsBuilder <SmartDormitoryContext>()
                             .UseInMemoryDatabase
                                 (databaseName: "AllAdmin_Return_Valid_Sensor_Enumerable_When_MeasureType_Is_Not_Default")
                             .Options;

            var sensor = SetupFakeSensor();

            using (var actContext = new SmartDormitoryContext(contextOptions))
            {
                await actContext.Sensors.AddAsync(sensor);

                await actContext.SaveChangesAsync();
            }
            measureTypeServiceMock
            .Setup(x => x.Exists(It.IsAny <string>()))
            .ReturnsAsync(true);

            // Act && Assert
            using (var assertContext = new SmartDormitoryContext(contextOptions))
            {
                var sut     = new SensorsService(assertContext, measureTypeServiceMock.Object);
                var sensors = await sut.AllAdmin("temperature");

                Assert.AreEqual(1, sensors.Count());
            }
        }
        public async Task Return_Valid_Sensor_Enumerable_When_SearchTerm_Is_Not_Default()
        {
            // Arrange
            contextOptions = new DbContextOptionsBuilder <SmartDormitoryContext>()
                             .UseInMemoryDatabase
                                 (databaseName: "AllAdmin_Return_Valid_Sensor_Enumerable_When_SearchTerm_Is_Not_Default")
                             .Options;

            var sensor = SetupFakeSensor();

            using (var actContext = new SmartDormitoryContext(contextOptions))
            {
                await actContext.Sensors.AddAsync(sensor);

                await actContext.SaveChangesAsync();
            }

            // Act && Assert
            using (var assertContext = new SmartDormitoryContext(contextOptions))
            {
                var sut     = new SensorsService(assertContext, measureTypeServiceMock.Object);
                var sensors = await sut.AllAdmin("all", -1, -1, 1, 10, "testera");

                Assert.AreEqual(1, sensors.Count());
            }
        }