public void Test_GetAllEmployees() { CustomerQueryService query = new CustomerQueryService(); var results = query.All(); int count = results.Count(); Assert.That(count, Is.GreaterThan(0)); }
public async Task TryToGetACustomerThatNotExists() { // Retrieve DbContext var context = ApplicationDbContextInMemory.Get(); ICustomerQueryService queryService = new CustomerQueryService(context, GetIlogger); // Test customer var testCustomerId = 99999999; // Retrieve the new record by USD code var record = await queryService.GetAsync(testCustomerId); // Check Assert.IsNull(record); }
public void Test_CustomersByCriteria() { CustomerQueryService query = new CustomerQueryService(); }