Exemple #1
0
        public EntityWithDictionaryType Clone()
        {
            EntityWithDictionaryType entity = new EntityWithDictionaryType();

            entity.Id             = Id;
            entity.DictionaryType = new Dictionary <string, string>(DictionaryType);
            return(entity);
        }
Exemple #2
0
        public static EntityWithDictionaryType GetRandomInstance(int seed = 1)
        {
            EntityWithDictionaryType entity = new EntityWithDictionaryType();

            entity.Id             = Guid.NewGuid().ToString();
            entity.DictionaryType = new Dictionary <string, string>()
            {
                { "key_" + seed, "val_" + seed }
            };
            return(entity);
        }
Exemple #3
0
 public void AssertEquals(EntityWithDictionaryType actualEntity)
 {
     Assert.AreEqual(Id, actualEntity.Id);
     Assert.AreEqual(DictionaryType, actualEntity.DictionaryType);
 }