public void TestUpdateClient() { var clientGuid = Guid.NewGuid(); var client = new Client { Guid = clientGuid, Login = "******", Password = "******" }; DbClientWorker.AddClient(client); var getClient = DbClientWorker.GetClient(clientGuid); Assert.IsNotNull(getClient); getClient.Login = "******"; getClient.Password = "******"; DbClientWorker.UpdateClient(getClient); var updatedClient = DbClientWorker.GetClient(clientGuid); Assert.IsNotNull(getClient); Assert.AreEqual(getClient.Login, "nigoLtseTtinU"); Assert.AreEqual(getClient.Password, "drowssaPtseTtinU"); DbClientWorker.DeleteClient(clientGuid); }
public void TestGetClient() { var clientGuid = Guid.NewGuid(); var client = new Client { Guid = clientGuid, Login = "******", Password = "******" }; DbClientWorker.AddClient(client); var getClient = DbClientWorker.GetClient(clientGuid); Assert.IsNotNull(getClient); DbClientWorker.DeleteClient(clientGuid); }