Exemplo n.º 1
0
 protected virtual void AssertMultipleEntities(TI[] result)
 {
     result.Should().NotBeNull();
     result.Should().HaveCount(MultipleEntities.Length);
     result.First().Should().Be(MultipleEntities.First());
     result.Last().Should().Be(MultipleEntities.Last());
 }
Exemplo n.º 2
0
 protected override void AssertMultipleEntities(Person[] result)
 {
     result.Should().NotBeNull();
     result.Should().HaveCount(MultipleEntities.Length);
     result.First().Key.Should().Be(MultipleEntities.First().Key);
     result.First().FirstName.Should().Be(MultipleEntities.First().FirstName);
     result.First().LastName.Should().Be(MultipleEntities.First().LastName);
     result.First().Roles.Should().HaveCount(MultipleEntities.First().Roles.Length);
     result.First().Roles.First().Should().Be(MultipleEntities.First().Roles.First());
     result.Last().Key.Should().Be(MultipleEntities.Last().Key);
     result.Last().FirstName.Should().Be(MultipleEntities.Last().FirstName);
     result.Last().LastName.Should().Be(MultipleEntities.Last().LastName);
     result.Last().Roles.Should().HaveCount(MultipleEntities.Last().Roles.Length);
     result.Last().Roles.First().Should().Be(MultipleEntities.Last().Roles.First());
 }