public void AddNewClientTest() { clientContext1 = clientDataAccess.AddClient(ClientFirstName1, ClientLastName1, ClientLogin1, HashClass.CreateFirstHash(ClientPassword1, ClientLogin1)); Assert.IsNotNull(clientContext1); Assert.AreNotEqual(clientContext1.Id, 0); Assert.AreEqual(clientContext1.FirstName, ClientFirstName1); Assert.AreEqual(clientContext1.LastName, ClientLastName1); Assert.AreEqual(clientContext1.Role, UserRole.Client); }
public int AddClient(string connectionTime) { var addedClientToken = clientsDataAccess.AddClient(connectionTime); return(addedClientToken); }
public void AddClient(string firstName, string lastName, string login, string password) { _clientDataAccess.AddClient(firstName, lastName, login, HashClass.CreateFirstHash(password, login)); }