public void Should_Success_Instantiate() { MonitoringSpecificationMachineDetailsViewModel viewModel = new MonitoringSpecificationMachineDetailsViewModel() { Indicator = "Indicator", Uom = "Uom", MonitoringSpecificationMachineId = 1 }; Assert.Equal("Indicator", viewModel.Indicator); Assert.Equal("Uom", viewModel.Uom); Assert.Equal(1, viewModel.MonitoringSpecificationMachineId); }
public void validate_Throws_NotImplementedException() { MonitoringSpecificationMachineDetailsViewModel viewModel = new MonitoringSpecificationMachineDetailsViewModel(); Assert.Throws <NotImplementedException>(() => viewModel.Validate(null)); }