Esempio n. 1
0
        public void Create()
        {
            Clients newUser = new Clients {
                id = 1, Name = "Pablo7", Surname = "Rodriguez7", DNI = "49012348V", Birthday = DateTime.Now, Country = "Spaina", Email = "*****@*****.**", Tel = 630761824
            };

            ClientViewModel NUser = new ClientViewModel();

            NUser.FromBaseDatos(newUser);

            controller.Create(NUser);


            List <ClientViewModel> clientes = ClientRepository.Get().ToList();

            CollectionAssert.Contains(clientes, NUser);
        }