예제 #1
0
        public static EntityWithArrayType GetRandomInstance(int seed = 1)
        {
            EntityWithArrayType entity = new EntityWithArrayType();

            entity.Id        = Guid.NewGuid().ToString();
            entity.ArrayType = new string[] { seed.ToString() };
            return(entity);
        }
예제 #2
0
        public EntityWithArrayType Clone()
        {
            EntityWithArrayType entity = new EntityWithArrayType();

            entity.Id = Id;
            List <string> strList = new List <string>();

            strList.AddRange(ArrayType);
            entity.ArrayType = strList.ToArray();
            return(entity);
        }
예제 #3
0
 public void AssertEquals(EntityWithArrayType actualEntity)
 {
     Assert.AreEqual(Id, actualEntity.Id);
     Assert.AreEqual(ArrayType, actualEntity.ArrayType);
 }