public void Start() { //Arrange tableName = "UnitTestTable"; TableStorageHandler = new TableStorageHandler<TestModel>(); firstEntity = new TestModel() { PartitionKey = "1", RowKey = "", Timestamp = new DateTime(2011, 04, 05, 22, 55, 00), Name = "Sheldon Cooper", BirthDate = new DateTime(1973, 03, 24) }; secondEntity = new TestModel() { PartitionKey = "2", RowKey = "", Timestamp = new DateTime(2011, 04, 05, 22, 55, 00), Name = "Leonard Hofstadter", BirthDate = new DateTime(1975, 04, 30) }; thirdEntity = new TestModel() { PartitionKey = "3", RowKey = "", Timestamp = new DateTime(2011, 04, 05, 22, 55, 00), Name = "Howard Wolowitz", BirthDate = new DateTime(1780, 12, 9) }; //Act TableStorageHandler.Insert(tableName, firstEntity); TableStorageHandler.Insert(tableName, secondEntity); TableStorageHandler.Insert(tableName, thirdEntity); }
public void InsertTest() { //Arrange var newEntity = new TestModel() { PartitionKey = "4", RowKey = "", Timestamp = DateTime.Now, Name = "Amy Farrah Fowler", BirthDate = new DateTime(1975, 12, 12) }; //Act TableStorageHandler.Insert(tableName, newEntity); }