public void removeValidClientAction() { //Arrange DataBaseContext db = new DataBaseContext(); IClientActionRepository clientActionRepo = new ClientActionRepository(db); Guid clientID = new Guid("6DF91B37-DC4A-E911-8259-0A64F53465D0"); string action = "Search"; ClientAction ca = clientActionRepo.GetClientAction(clientID, action); //Act clientActionRepo.RemoveClientAction(ca); ClientAction removedCA = clientActionRepo.GetClientAction(clientID, action); //Assert Assert.IsNull(removedCA); }
public void ClientRepository_RemoveClientAction_ValidClientAction() { //Arrange DataBaseContext db = new DataBaseContext(); IClientActionRepository clientActionRepo = new ClientActionRepository(db); Guid clientID = new Guid("41361F37-036B-E911-AA03-021598E9EC9E"); string action = "Search"; ClientAction ca = clientActionRepo.GetClientAction(clientID, action); //Act clientActionRepo.RemoveClientAction(ca); ClientAction removedCA = clientActionRepo.GetClientAction(clientID, action); //Assert Assert.IsNull(removedCA); }
public void getClientActionValid() { //Arrange DataBaseContext db = new DataBaseContext(); IClientActionRepository clientActionRepo = new ClientActionRepository(db); Guid clientID = new Guid("6CF91B37-DC4A-E911-8259-0A64F53465D0"); string action = "NotARealAction"; //Act ClientAction ca = clientActionRepo.GetClientAction(clientID, action); //Assert Assert.IsNull(ca); }
public void ClientRepository_GetClientAction_ValidClientAction() { //Arrange DataBaseContext db = new DataBaseContext(); IClientActionRepository clientActionRepo = new ClientActionRepository(db); Guid clientID = new Guid("40361F37-036B-E911-AA03-021598E9EC9E"); string action = "Login"; //Act ClientAction ca = clientActionRepo.GetClientAction(clientID, action); //Assert Assert.IsNotNull(ca); }