Ejemplo n.º 1
0
 /// <summary>
 /// Matches an actual entity instance of a person against.
 /// </summary>
 /// <param name="actualEntityInstance">The actual entity instance to verify.</param>
 /// <param name="expectedId">The expected id of the Person.</param>
 /// <param name="expectedName">The expected name of the Person.</param>
 /// <param name="expectedDateOfBirth">The expected date of birth of the person.</param>
 /// <param name="expectedETag">The expected ETag of the entity instance.</param>
 internal static void MatchEntityInstanceOfPerson(EntityInstance <Person> actualEntityInstance, string expectedId, string expectedName, string expectedDateOfBirth, string expectedETag)
 {
     Assert.AreEqual(expectedId, actualEntityInstance.Entity.Id);
     Assert.AreEqual(ValueUtilities.GetNullableString(expectedName), actualEntityInstance.Entity.Name);
     Assert.AreEqual(ValueUtilities.GetNullableDateTimeOffset(expectedDateOfBirth), actualEntityInstance.Entity.DateOfBirth);
     Assert.AreEqual(ValueUtilities.GetNullableString(expectedETag), actualEntityInstance.ETag);
 }