public void SpectatorScreen_GetGrowableItemById() { //Arrange GrowableItem growableItem = null; GrowableItem expectedGrowableItem = growableItemDataSerivce.GetGrowableItemById(1); //act SpectatorScreenViewModel viewModel = GetViewModel(); growableItem = viewModel.CurrentGrowableItem; //assert Assert.AreEqual(expectedGrowableItem, growableItem); }
public void SpectatorScreen_LoadAllSensorTypes() { //Arrange ObservableCollection <SensorType> sensorTypes = null; ObservableCollection <SensorType> expectedSensorTypes = sensorTypeDataService.GetAllSensorTypes(); //act SpectatorScreenViewModel viewModel = GetViewModel(); sensorTypes = viewModel.sensorTypeList; //assert CollectionAssert.AreEqual(expectedSensorTypes, sensorTypes); }