public void PerformLegacyCodeActivity(LegacyCodeState state, LegacyCodeParams legacyParams)
 {
     lock (_lockObject)
     {
         LegacyCode.Initialize(state.P1, state.P2);
         LegacyCode.ChangeSettings(state.P3, state.P4);
         LegacyCode.DoSomething(legacyParams.SomeOtherParam);
         //do something to reset state, perhaps
     }
 }
Esempio n. 2
0
        public void TestMethodLegacyCode()
        {
            var l   = new LegacyCode();
            var url = LegacyCode.MakeUrl("MSFT",
                                         new DateTime(2000, 9, 15),
                                         new DateTime(2000, 10, 18)
                                         );
            var res = l.GetResult(url);

            var closerate = l.DateMaxClose(res);

            Assert.IsTrue(closerate.Item2 > 20);
        }