Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #3
0
 public void AssertEquals(EntityWithArrayType actualEntity)
 {
     Assert.AreEqual(Id, actualEntity.Id);
     Assert.AreEqual(ArrayType, actualEntity.ArrayType);
 }