CarbonFitnessTest.Integration.Results.ResultsShowAdvancedTest.shouldShowLoggedInUsersIdealWeight C# (CSharp) Метод

shouldShowLoggedInUsersIdealWeight() приватный Метод

private shouldShowLoggedInUsersIdealWeight ( ) : void
Результат void
        public void shouldShowLoggedInUsersIdealWeight()
        {
            var userProfileRepository = new UserProfileRepository();

            var userProfile = userProfileRepository.GetByUserId(UserId);
            var userIdealWeight = userProfile.IdealWeight;

            var idealWeightString = userIdealWeight.ToString("N1") + "kg";
            Assert.That(Browser.ContainsText(idealWeightString), "Page did not contain: " + idealWeightString);
        }