public void TestInitialize() { _repository = new TreeDataRepository <FakeDataModel>(); var builder = new StringBuilder(); builder.AppendLine("testName1,testValue1,0.123456789012346,Buy"); builder.AppendLine("testName2,testValue2,1.12345678901235,Hold"); builder.AppendLine("testName3,testValue3,2.12345678901235,Sell"); _data = builder.ToString(); _records = new List <FakeDataModel> { new FakeDataModel { Name = "testName1", Value = "testValue1", Price = 0.1234567890123456, Option = "Buy" }, new FakeDataModel { Name = "testName2", Value = "testValue2", Price = 1.1234567890123456, Option = "Hold" }, new FakeDataModel { Name = "testName3", Value = "testValue3", Price = 2.1234567890123456, Option = "Sell" } }; }
public void TestInitialize() { _repository = new TreeDataRepository<FakeDataModel>(); var builder = new StringBuilder(); builder.AppendLine("testName1,testValue1,0.123456789012346,Buy"); builder.AppendLine("testName2,testValue2,1.12345678901235,Hold"); builder.AppendLine("testName3,testValue3,2.12345678901235,Sell"); _data = builder.ToString(); _records = new List<FakeDataModel> { new FakeDataModel { Name = "testName1", Value = "testValue1", Price = 0.1234567890123456, Option = "Buy" }, new FakeDataModel { Name = "testName2", Value = "testValue2", Price = 1.1234567890123456, Option = "Hold" }, new FakeDataModel { Name = "testName3", Value = "testValue3", Price = 2.1234567890123456, Option = "Sell" } }; }
public TreeDataController(TreeDataRepository treeDataRepository) { _repo = treeDataRepository; }