public void Empty_FirstName() { var query = new GetCustomerByFirstName.Query { FirstName = "" }; var customers = Mediator.Send(query).GetAwaiter().GetResult(); Assert.IsNotNull(customers); Assert.AreEqual(0, customers.Count); }
public void Valid_FirstName() { var query = new GetCustomerByFirstName.Query { FirstName = "Melissa" }; var customers = Mediator.Send(query).GetAwaiter().GetResult(); Assert.IsNotNull(customers); Assert.AreEqual(1, customers.Count); Assert.AreEqual("Melissa", customers[0].FirstName); Assert.AreEqual("Labadie", customers[0].LastName); }