Ejemplo n.º 1
0
        public void Authenticate_ItReturnsTheRightValues()
        {
            MnoHelper.Environment = "production";
            MnoHelper.Api.Id      = "app-1";
            MnoHelper.Api.Key     = "somekey";

            Assert.AreEqual(true, MnoHelper.Authenticate(MnoHelper.Api.Id, MnoHelper.Api.Key));
            Assert.AreEqual(false, MnoHelper.Authenticate(MnoHelper.Api.Id, "someotherrandomkey"));
        }