public When_get_and_count_repo() { Utils.DropDb(); _testCustomerRepo = new BaseRepository <TestCustomer>(Utils.MongoUnitOfWork); var customers = new List <TestCustomer> { new TestCustomer { FirstName = "Customer A" }, new TestCustomer { FirstName = "Client B" }, new TestCustomer { FirstName = "Customer C" }, new TestCustomer { FirstName = "Client D" }, new TestCustomer { FirstName = "Customer E" }, new TestCustomer { FirstName = "Client F" }, new TestCustomer { FirstName = "Customer G" } }; _testCustomerRepo.Add(customers); }
public void Dispose() { Utils.DropDb(); }
public When_single_add_and_update_repo() { Utils.DropDb(); _testProductRepo = new BaseRepository <TestProduct>(Utils.MongoUnitOfWork); }
public When_batch_add_and_update_repo_async() { Utils.DropDb(); _testCustomerRepo = new BaseRepository <TestCustomer>(Utils.MongoUnitOfWork); }
public When_delete_repo_async() { Utils.DropDb(); _testCustomerRepo = new BaseRepository <TestCustomer>(Utils.MongoUnitOfWork); }