public void TestObjectDumper()
        {
            var va = new VaccineAdministeredModel()
            {
                AdministeredAtDateTime = DateTime.Now, Id = 1, VaccineId = 1
            };
            var p = new ParticipantProgressModel
            {
                AdmissionDiagnosis        = "asd",
                AdmissionWeight           = 1900,
                AgeDays                   = 3,
                TrialArm                  = BlowTrial.Domain.Outcomes.RandomisationArm.RussianBCG,
                DateTimeBirth             = DateTime.Now,
                VaccineModelsAdministered = new VaccineAdministeredModel[] { va, va },
                ProtocolViolations        = new ProtocolViolation[0]
            };

            va.AdministeredTo = p;
            Console.Write(GenericToDataString.ObjectDumper.Dump(p));
            Console.Write(GenericToDataString.ObjectDumper.Dump(null));
            IEnumerable <VaccineAdministered> vas = null;

            Console.Write(GenericToDataString.ObjectDumper.Dump(vas));
            vas = new VaccineAdministered[] { new VaccineAdministered {
                                                  Id = 1, ParticipantId = 3
                                              } };
            Console.Write(GenericToDataString.ObjectDumper.Dump(vas));
            var c = new Dictionary <int, string>
            {
                { 1, "one" },
                { 2, "two" }
            };

            Console.Write(GenericToDataString.ObjectDumper.Dump(c));
            var d = new Dictionary <int, VaccineAdministeredModel>
            {
                { 1, va }
            };

            Console.Write(GenericToDataString.ObjectDumper.Dump(d));
        }
 public VaccineAdministeredViewModel(VaccineAdministeredModel vaccineModel, IEnumerable <VaccineViewModel> vaccineList)
 {
     VaccineList = vaccineList;
     VaccineAdministeredModel = vaccineModel;
     SelectedVaccine          = VaccineList.First(l => l.VaccineId == vaccineModel.VaccineId);
 }