Пример #1
0
        public async Task IsRealAsync_ShouldReturnTypeOfBool()
        {
            var testEgn = "8810120964";

            var checkEgnService = new CheckEgnService();

            var sut = await checkEgnService.IsRealAsync(testEgn);

            Assert.IsInstanceOfType(sut, typeof(bool));
        }
Пример #2
0
        public async Task IsRealAsync_ShouldReturn_False()
        {
            var testEgn = "1010120964";

            var checkEgnService = new CheckEgnService();

            var sut = await checkEgnService.IsRealAsync(testEgn);

            var expectedResult = false;

            Assert.AreEqual(expectedResult, sut);

        }
Пример #3
0
        public async Task IsRealAsync_ShouldReturn_True()
        {
            //Mock
            var testEgn = "8810120964";

            var checkEgnService = new CheckEgnService();

            var sut = await checkEgnService.IsRealAsync(testEgn);

            var expectedResult = true;

            Assert.AreEqual(expectedResult, sut);

        }