Пример #1
0
        public static void Run()
        {
            Console.WriteLine("Demo of recording on method manipulating the input argument.");

            var bussinessLogic = new SomeBL();
            var entity = new SomeEntity {Name = "My name", Income = 1000};

            Console.WriteLine("Before method call: {0} {1}", entity.Name, entity.Income);

            bussinessLogic.DoSomething(entity);

            Console.WriteLine("After method call: {0} {1}", entity.Name, entity.Income);
        }
Пример #2
0
        public static void Run()
        {
            Console.WriteLine("Demo of recording on method manipulating the input argument.");

            var bussinessLogic = new SomeBL();
            var entity         = new SomeEntity {
                Name = "My name", Income = 1000
            };

            Console.WriteLine("Before method call: {0} {1}", entity.Name, entity.Income);

            bussinessLogic.DoSomething(entity);

            Console.WriteLine("After method call: {0} {1}", entity.Name, entity.Income);
        }
Пример #3
0
 public void DoSomething(SomeEntity entity)
 {
     entity.Name   = entity.Name + " edited...";
     entity.Income = entity.Income * 1.1;
 }
Пример #4
0
 public void DoSomething(SomeEntity entity)
 {
     entity.Name = entity.Name + " edited...";
     entity.Income = entity.Income*1.1;
 }