Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public int AddClient(string connectionTime)
        {
            var addedClientToken = clientsDataAccess.AddClient(connectionTime);

            return(addedClientToken);
        }
Ejemplo n.º 3
0
 public void AddClient(string firstName, string lastName, string login, string password)
 {
     _clientDataAccess.AddClient(firstName, lastName, login, HashClass.CreateFirstHash(password, login));
 }