public void validate_default()
        {
            MonitoringSpecificationMachineViewModel viewModel = new MonitoringSpecificationMachineViewModel();

            var result = viewModel.Validate(null);

            Assert.True(0 < result.Count());
        }
        public void validate_DetailsCount_Empty()
        {
            MonitoringSpecificationMachineViewModel viewModel = new MonitoringSpecificationMachineViewModel()
            {
                Details = new List <MonitoringSpecificationMachineDetailsViewModel>()
                {
                },
            };
            var result = viewModel.Validate(null);

            Assert.True(0 < result.Count());
        }
        public void validate_Details_when_DataType_input_teks()
        {
            MonitoringSpecificationMachineViewModel viewModel = new MonitoringSpecificationMachineViewModel()
            {
                Details = new List <MonitoringSpecificationMachineDetailsViewModel>()
                {
                    new MonitoringSpecificationMachineDetailsViewModel()
                    {
                        DataType     = "input teks",
                        Value        = "",
                        DefaultValue = "1-4"
                    }
                },
            };
            var result = viewModel.Validate(null);

            Assert.True(0 < result.Count());
        }
        public void validate_Details_when_DataType_skala_angka()
        {
            MonitoringSpecificationMachineViewModel viewModel = new MonitoringSpecificationMachineViewModel()
            {
                Details = new List <MonitoringSpecificationMachineDetailsViewModel>()
                {
                    new MonitoringSpecificationMachineDetailsViewModel()
                    {
                        DataType     = "input skala angka",
                        Value        = "4",
                        DefaultValue = "4-1"
                    }
                },
            };
            var result = viewModel.Validate(null);

            Assert.True(0 < result.Count());
        }