Example #1
0
        public void AddUserTest()
        {
            var service       = new Service1();
            var UsersCountPre = service.SelectUsers().Count;

            Users Users = new Users
            {
                Login    = "******",
                Password = "******",
                FIO      = "TestCompetition",
                Phone    = "8985395839",
                Email    = "asdjpas",
                Admin    = false
            };

            service.AddUsers(Users);
            var UsersCountPost = service.SelectUsers().Count;

            Assert.AreEqual(UsersCountPre + 1, UsersCountPost);
        }