예제 #1
0
        public void UnirseASalaTest()
        {
            SessionService.Servicio.SessionService ServicioSesion = new SessionService.Servicio.SessionService();
            CuentaModel cuenta = new CuentaModel()
            {
                NombreUsuario     = "hachi",
                Contrasena        = "hola9011",
                CorreoElectronico = "*****@*****.**"
            };

            ServicioSesion.IniciarSesion(cuenta);
            bool expectedResut = true;

            GameService service = new GameService();

            Assert.AreEqual(expectedResut, service.UnirseASala(cuenta));
        }
예제 #2
0
        public void UnirseASalaPrivadaTestNoexisteSala()
        {
            SessionService.Servicio.SessionService ServicioSesion = new SessionService.Servicio.SessionService();
            CuentaModel cuenta = new CuentaModel()
            {
                NombreUsuario     = "chino",
                Contrasena        = "joseMiguel",
                CorreoElectronico = "*****@*****.**"
            };

            ServicioSesion.IniciarSesion(cuenta);
            bool expectedResut = true;

            string id = "qM3A20";

            GameService service = new GameService();

            Assert.AreEqual(expectedResut, service.UnirseASalaPrivada(id, cuenta));
        }