Example #1
0
        public async void ItShouldSayItsUnverified()
        {
            string number      = "+3261848468684686848868464864161688468479481289";
            var    phoneClient = A.Fake <IPhoneClient>();

            var sut = new VerifyNumber.Handler(phoneClient);

            var request = new VerifyNumber.Request()
            {
                Number = number
            };

            var response = await sut.Handle(request, CancellationToken.None);

            response.Verified.Should().BeFalse();
        }
Example #2
0
        public async void ItShouldSayItsVerified()
        {
            string number      = "+32487584091";
            var    phoneClient = A.Fake <IPhoneClient>();

            var sut = new VerifyNumber.Handler(phoneClient);

            var request = new VerifyNumber.Request()
            {
                Number = number
            };

            var response = await sut.Handle(request, CancellationToken.None);

            response.Verified.Should().BeFalse();
        }