public void ThenThePersonCollectionShouldContainTheFollowingItemsFromThePersonCollection(string actualKey, string sourceKey, Table indices)
        {
            IList <Person> actualList   = this.ScenarioContext.Get <IList <Person> >(actualKey);
            IList <Person> sourceList   = this.ScenarioContext.Get <IList <Person> >(sourceKey);
            IList <Person> expectedList = PersonDriver.GetPeopleFromIndices(sourceList, indices);

            CollectionAssert.AreEqual(expectedList, actualList);
        }
        public void ThenTheEntityInstanceOfPersonCollectionShouldContainTheFollowingItemsFromThePersonCollection(string actualKey, string sourceKey, Table indices)
        {
            IList <EntityInstance <Person> > entityInstanceList = this.ScenarioContext.Get <IList <EntityInstance <Person> > >(actualKey);
            IList <Person> sourceList   = this.ScenarioContext.Get <IList <Person> >(sourceKey);
            IList <Person> expectedList = PersonDriver.GetPeopleFromIndices(sourceList, indices);

            CollectionAssert.AreEqual(expectedList, entityInstanceList.Select(e => e.Entity).ToList());
        }
        public Task GivenIAddACollectionOfPersonObjectsCalledToTheCosmosContainer(string peopleKey, string containerKey, Table table)
        {
            IList <Person> people = PersonDriver.CreatePeople(table, this.ScenarioContext, peopleKey);

            return(CosmosExtensionsDriver.AddPeopleToContainerAsync(this.ScenarioContext, containerKey, people));
        }
Пример #4
0
 public void GivenICreateAPersonWithIdNameAndDateOfBirthCalled(string id, string name, string dateOfBirth, string key)
 {
     PersonDriver.CreatePerson(id, name, dateOfBirth, this.ScenarioContext, key);
 }