APD.IntegrationTests.VCS.Git.When_query_all_changesets.assure_author_is_loaded_into_the_resultset C# (CSharp) Метод

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

private assure_author_is_loaded_into_the_resultset ( ) : void
Результат void
        public void assure_author_is_loaded_into_the_resultset()
        {
            Scenario.StartNew(this, scenario =>
            {
                scenario.Given(the_repository_contain_changesets);
                scenario.When(changesets_are_requested);
                scenario.Then("assure Author is loaded into over 50% of the rows in the _resultset", () =>
                {
                    IEnumerable<Changeset> q =
                        resultset.Where(c => c.Author != null && c.Author.Username != null);
                    double authorPercent = ((double)q.Count() / resultset.Count()) * 100;
                    authorPercent.ShouldBeGreaterThan(50);
                });
            });
        }