public TestModel(string ProductNumber, string searchkeygroup, string searchkeyname, string stringoccurrence, string RState = null, string hitsexpected = null, string SerialNumber = null, string DateFrom = null, string DateTo = null, string ExcludedRState = null, string ProductDate = null, string servicelocation = null, StationTestType testtype = StationTestType.All) { CurrentProduct = Substitute.For <ProductModel>(); CurrentProduct.ProductNumber = ProductNumber; CurrentProduct.RState = RState; CurrentProduct.SerialNumber = SerialNumber; CurrentProduct.DateFrom = DateFrom; CurrentProduct.DateTo = DateTo; CurrentProduct.ProductDate = ProductDate; CurrentProduct.ExcludedRState = ExcludedRState; SearchKeyGroup = searchkeygroup; SearchKeyName = searchkeyname; StringOccurrence = stringoccurrence; HitsExpected = hitsexpected; TestType = testtype; ServiceLocation = servicelocation; }
public ChooseCase(StationTestType testtype = StationTestType.RcPrtt, List <StationTestType> includetesttypes = null, List <StationTestType> excludetesttypes = null, string serviceLocation = null, string serialnumber = "*", string productnumber = "KDU 137 925/31", string rstate = "RSA", string excludedrstate = null, string productdate = null, string datefrom = null, string dateto = null) { TestType = testtype; IncludeTestTypes = includetesttypes ?? new List <StationTestType> { StationTestType.RcPrtt }; ExcludeTestTypes = excludetesttypes ?? new List <StationTestType> { StationTestType.Undefined }; ServiceLoction = serviceLocation; Serialnumber = serialnumber; ProductNumber = productnumber; RState = rstate; ExcludedRState = excludedrstate; ProductDate = productdate; DateFrom = datefrom; DateTo = dateto; }