public void NavigationForm() { LearningsButton.Click(); ActiveModulsButton.Click(); QAModulLink.Click(); CourseLink.ScrollTo().ToBeVisible().Click(); }
public void NavigationForm() { LearningsButton.Click(); ActiveModulsButton.Click(); QAModulLink.Click(); Driver.ScrollTo(CourseLink); CourseLink.Click(); }
public CourseBaseVM.SecondCourseDiscount SecondCourse(string courseTC, CourseLink course) { if (course == null) { return(null); } var price = PriceService.GetPriceByType(courseTC, PriceTypes.Main, null); var secondPrice = PriceService.GetPriceByType(course.CourseTC, PriceTypes.Main, null); if (!secondPrice.HasValue || !price.HasValue) { return(null); } var authTypeTC = CourseService.GetValues(course.CourseTC, x => x.AuthorizationType_TC); var discountPercent = AuthorizationTypes.GetSecondCourseDiscount(authTypeTC); var secondpriceWithDiscount = OrderDetail.FloorToFifty(secondPrice.Value * (1.0m - discountPercent / 100.0m)); return(new CourseVM.SecondCourseDiscount { SecondCourse = course, Discount = (secondPrice.Value - secondpriceWithDiscount), SumWithDiscount = secondpriceWithDiscount + price.Value }); }