Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public void DoSomething(SomeEntity entity)
 {
     entity.Name   = entity.Name + " edited...";
     entity.Income = entity.Income * 1.1;
 }
Exemplo n.º 4
0
 public void DoSomething(SomeEntity entity)
 {
     entity.Name = entity.Name + " edited...";
     entity.Income = entity.Income*1.1;
 }