Ejemplo n.º 1
0
        public ItemDto(int id)
        {
            Int    = id;
            Long   = 5;
            Float  = 3.1f;
            Double = 4.2;
            Text   = "TEXT";

            UniqueID = Guid.Parse("c060ee98-2527-4a47-88cb-e65263ed4277");
            DateTime = DateTime.UtcNow;

            Options = new[] { ENUM.A, ENUM.B };
            Strings = new[] { "abc", "def" };

            Child = new ChildDto(99);

            VeryBigBuffer = System.Text.Encoding.UTF8.GetBytes("VERYBIGTEXT");

            DictionaryBuffers = new Dictionary <string, byte[]>();
            DictionaryBuffers.Add("buffer1", System.Text.Encoding.UTF8.GetBytes("BUFFER1"));
            DictionaryBuffers.Add("buffer2", System.Text.Encoding.UTF8.GetBytes("BUFFER2"));
        }
Ejemplo n.º 2
0
 public BaseDto()
 {
     BaseInt   = 98;
     BaseChild = new ChildDto(99);
 }