public double TestForGetDiscountRate(string state, int daysOrder) { PathProviderXML pathProvider = new PathProviderXML(); string xmlDocPath = pathProvider.GetPathForTest(); XDocument xDoc = XDocument.Load(xmlDocPath); return(PurpleBoardPriceXMLHelper.GetDiscountRate(xDoc, state, daysOrder)); }
public void GetPriceWithoutSomeFilters(string state, string boardSize, int daysOrder) { PathProviderXML pathProvider = new PathProviderXML(); string xmlDocPath = pathProvider.GetPathForTest(); XDocument xDoc = XDocument.Load(xmlDocPath); Assert.That(() => PurpleBoardPriceXMLHelper.GetPriceByFilter(xDoc, state, boardSize, daysOrder), Throws.TypeOf <ApplicationException>()); }