public async Task IsRealAsync_ShouldReturnTypeOfBool() { var testEgn = "8810120964"; var checkEgnService = new CheckEgnService(); var sut = await checkEgnService.IsRealAsync(testEgn); Assert.IsInstanceOfType(sut, typeof(bool)); }
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); }
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); }