Exemplo n.º 1
0
        public async Task VerifyCallSetup()
        {
            DateTime start = DateTime.Now - TimeSpan.FromMinutes(1);
            var      uuid  = await Service.VerifyCallSetupAsync();

            var callSetup = await Service.VerifyCallSetupGetStatusAsync(uuid);

            Assert.IsNotNull(callSetup);
            Assert.IsTrue(callSetup.InitiatedTime >= start, "InitiatedTime should be greater than the start of the test");
            Assert.IsTrue(callSetup.InitiatedTime < DateTime.Now + TimeSpan.FromMinutes(1), "InitiatedTime should be less than now");
            Assert.AreEqual(Service.Username, callSetup.UserPhoneNumber, "User phone number should match");
        }