private static void Main(string[] args) { var call = new Call { Number = "001337", CustomerNumber = "000001" }; var op = new Operation { ID = 1, CallNumber = "001337", TimeFrom = "08:00" }; var customer = new Customer { Number = "000001", Name = "John Doe" }; var model = new { Call = call, Customer = customer, Operation = op }; var viewModel = new CallViewModel(); viewModel.InjectFrom <FlatLoopValueInjection>(model); Console.WriteLine("Number:\t\t\t" + viewModel.CallNumber); Console.WriteLine("CustomerName:\t\t" + viewModel.CustomerName); Console.WriteLine("OperationTimeFrom:\t" + viewModel.OperationTimeFrom); Console.ReadLine(); }