public void GenerarQRTest()
 {
     bool sendCalled = false;
     var hub = new MoneyPointsHub();
     var mockClients = new Mock<IHubCallerConnectionContext<dynamic>>();
     hub.Clients = mockClients.Object;
     dynamic all = new ExpandoObject();
     all.acceptQR = new Action<string>((message) =>
     {
         sendCalled = true;
     });
     mockClients.Setup(m => m.All).Returns((ExpandoObject)all);
     hub.GenerarQR("1128268719", 20000);
     Assert.IsTrue(sendCalled);
 }
        public void FinalizarCompraTest()
        {
            MoneyPointsHub money = new MoneyPointsHub();

            money.FinalizarCompra(new Venta
            {
                AliadoId = 3,
                BeneficiariosClienteId = 1,
                BeneficiarioId = 1,
                Pin = "1234",
                ConnectionIdCliente = "1234",
                Valor = 10000
            });

            Assert.IsTrue(1 == 1);
        }