public void getClientsByValidAction() { //Arrange DataBaseContext db = new DataBaseContext(); IClientActionRepository clientActionRepo = new ClientActionRepository(db); string action = "Update"; //Act List <Client> clients = clientActionRepo.GetClientsByAction(action); //Assert Assert.AreEqual(clients.Count, 3); }
public void ClientRepository_GetClientsByAction_InvalidAction() { //Arrange DataBaseContext db = new DataBaseContext(); IClientActionRepository clientActionRepo = new ClientActionRepository(db); string action = "NotAnAction"; //Act List <Client> clients = clientActionRepo.GetClientsByAction(action); //Assert Assert.AreEqual(clients.Count, 0); }