public void GetObservations() { //Arrange var service = new ObservationDataService(repository); //Act List <Observation> observations = service.GetObservations(); //Assert Assert.IsNotNull(observations); }
public void GetObservationById() { //Arrange var service = new ObservationDataService(repository); //Act var observation = service.GetObservationById(1); //Assert Assert.IsNotNull(observation); }
public void GetObservationsByRegion() { //Arrange var service = new ObservationDataService(repository); //Act Region region = new Region { RegionID = 1, RegionName = "Groenten", WarehouseID = 1, SensorID = 1, Observations = null, Racks = null }; List <Observation> observations = service.GetObservationsByRegion(region); //Assert Assert.IsNotNull(observations); }