public void Assert_no_changesets_from_other_autors_are_returned()
        {
            Scenario.StartNew(this, scenario =>
            {
                scenario.Given("the user " + username + " has committed changesets to the repository");

                scenario.When("these changesets are retrieved");

                scenario.Then("assure all changesets returned have this user as its author", () =>
                {
                    var repository = new TFSChangesetRepository(repositoryUrl, repositoryPath, credentials);
                    IEnumerable<Changeset> resultsets =
                        repository.Get(new ChangesetsForUserSpecification(username));

                    resultsets.Count().ShouldNotBeNull();

                    foreach (Changeset resultset in resultsets)
                        Assert.AreEqual(resultset.Author.Username, username);
                });
            });
        }
        public void Assert_changesets_can_be_filtered_on_user()
        {
            Scenario.StartNew(this, scenario =>
            {
                scenario.Given("the user " + username + " has committed changesets to the repository");

                scenario.When("these changesets are retrieved");

                scenario.Then("at least one changeset is returned", () =>
                {
                    var repository = new TFSChangesetRepository(repositoryUrl, repositoryPath, credentials);
                    IEnumerable<Changeset> resultsets =
                        repository.Get(new ChangesetsForUserSpecification(username));
                    resultsets.Count().ShouldNotBe(0);
                });
            });
        }