public void Init() { using (var uow = new DatabaseContext(Config)) { uow.DropSchema(); uow.CreateSchema(); } }
/// <summary> /// The search tests. /// </summary> /// <param name="Config"> /// The db id. /// </param> private void SearchTests() { using (var uow = new DatabaseContext(Config)) { this.Country_SearchTests(uow); this.Customer_SearchTests(uow); this.Product_SearchTests(uow); this.Book_SearchTests(uow); this.Software_SearchTests(uow); this.Order_SearchTests(uow); this.BankAccount_SearchTests(uow); } }
/// <summary> /// The load tests. /// </summary> /// <param name="Config"> /// The db id. /// </param> private void LoadTests() { using (var uow = new DatabaseContext(Config)) { this.Country_LoadTests(uow); this.Customer_LoadTests(uow); this.Product_LoadTests(uow); this.Book_LoadTests(uow); this.Software_LoadTests(uow); this.Order_LoadTests(uow); this.OrderDetails_LoadTests(uow); this.BankAccount_LoadTests(uow); this.BankTransfers_LoadTests(uow); } }
/// <summary> /// The update tests. /// </summary> /// <param name="Config"> /// The db id. /// </param> private void UpdateTests() { // Updates using (var uow = new DatabaseContext(Config)) { this.Country_Update(uow); } using (var uow = new DatabaseContext(Config)) { this.Customer_Update(uow); } using (var uow = new DatabaseContext(Config)) { this.Product_Update(uow); } using (var uow = new DatabaseContext(Config)) { this.Book_Update(uow); } using (var uow = new DatabaseContext(Config)) { this.Software_Update(uow); } using (var uow = new DatabaseContext(Config)) { this.Order_Update(uow); } using (var uow = new DatabaseContext(Config)) { this.OrderDetails_Update(uow); } using (var uow = new DatabaseContext(Config)) { this.BankAccount_Update(uow); } using (var uow = new DatabaseContext(Config)) { this.BankTransfers_Update(uow); } }
/// <summary> /// The add tests. /// </summary> /// <param name="Config"> /// The db id. /// </param> private void AddTests() { using (var uow = new DatabaseContext(Config)) { this.Country_Add(uow); } using (var uow = new DatabaseContext(Config)) { this.Customer_Add(uow, 2, 1, 2); } using (var uow = new DatabaseContext(Config)) { this.Product_Add(uow, 5, 1, 5); } using (var uow = new DatabaseContext(Config)) { this.Book_Add(uow); } using (var uow = new DatabaseContext(Config)) { this.Software_Add(uow); } using (var uow = new DatabaseContext(Config)) { this.Order_Add(uow, 2, 1, 2); } using (var uow = new DatabaseContext(Config)) { this.OrderDetails_Add(uow, 2, 1, 2); } using (var uow = new DatabaseContext(Config)) { this.BankAccount_Add(uow, 2, 1, 2); } using (var uow = new DatabaseContext(Config)) { this.BankTransfers_Add(uow); } }