コード例 #1
0
        public void FindAllForStationId()
        {
            _repository.Save(CreateDataPoint(stationId: "myStationId1", sensorValueNumber: 1));
            _repository.Save(CreateDataPoint(stationId: "myStationId2", sensorValueNumber: 2));

            IList <DataPoint> allForStationId = _repository.FindAllByStationId("myStationId1");

            Assert.Equal(1, allForStationId.Count);
            Assert.Equal(1, allForStationId[0].SensorValueNumber);
        }