コード例 #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;
 }