Exemplo n.º 1
0
        public async System.Threading.Tasks.Task Should_not_touch_correct_records()
        {
            var _testPrices = new List <Price>
            {
                new Price {
                    CompanyId = 1, HighPrice = 10, LowPrice = 2, ClosePrice = 5, OpenPrice = 7
                },
                new Price {
                    CompanyId = 1, HighPrice = 10, LowPrice = 10, ClosePrice = 5, OpenPrice = 7
                },
                new Price {
                    CompanyId = 1, HighPrice = 10, LowPrice = 2, ClosePrice = 5, OpenPrice = 10
                },
                new Price {
                    CompanyId = 1, HighPrice = 10, LowPrice = 10, ClosePrice = 10, OpenPrice = 10
                }
            };

            _prices.AddRange(_testPrices);

            await _dataFixer.FixData();

            _prices.Should().BeEquivalentTo(_testPrices);
            VerifyNoEntriesRemoved();
        }
 public void Execute(IEnumerable <string> parameters)
 {
     System.Threading.Tasks.Task.Run(() => _dataFixer.FixData()).Wait();
 }