コード例 #1
0
        public static List <EntityWithNullableTimeUuid> GetDefaultObjectList()
        {
            List <EntityWithNullableTimeUuid> defaultTimeUuidObjList = new List <EntityWithNullableTimeUuid>();

            for (int i = 1; i <= DefaultRecordCount; i++)
            {
                EntityWithNullableTimeUuid entity = new EntityWithNullableTimeUuid();
                entity.NullableTimeUuidType = TimeUuid.NewId(DateTimeOffset.Parse("2014-3-" + i));
                entity.GuidType             = Guid.NewGuid();
                defaultTimeUuidObjList.Add(entity);
            }
            return(defaultTimeUuidObjList);
        }
コード例 #2
0
 public static bool AssertListContains(List <EntityWithNullableTimeUuid> expectedEntities, EntityWithNullableTimeUuid actualEntity)
 {
     foreach (var expectedEntity in expectedEntities)
     {
         try
         {
             AssertEquals(expectedEntity, actualEntity);
             return(true);
         }
         catch (AssertionException) { }
     }
     return(false);
 }
コード例 #3
0
 public static void AssertEquals(EntityWithNullableTimeUuid expectedEntity, EntityWithNullableTimeUuid actualEntity)
 {
     Assert.AreEqual(expectedEntity.GuidType, actualEntity.GuidType);
     Assert.AreEqual(expectedEntity.StringType, actualEntity.StringType);
     Assert.AreEqual(expectedEntity.NullableTimeUuidType, actualEntity.NullableTimeUuidType);
 }