Exemple #1
0
        public CheckPalindromeControllerTests()
        {
            var datarepo = new FakePalindromeDataRepository();

            businessrepo = new PalindromeBusinessRepository(datarepo);

            controller = new CheckPalindromeController(businessrepo);
        }
Exemple #2
0
        public void Should_Fetch_All_Palindrome()
        {
            // Arrange

            int count         = 0;
            int expectedCount = new FakePalindromeDataRepository().samplePalindromes.Count;

            //Act
            count = dataRepo.GetAll().ToList().Count;

            //Assert

            Assert.AreEqual(count, expectedCount);
        }
Exemple #3
0
        public void Should_Fetch_All_Palindrome()
        {
            // Arrange

            int count         = 0;
            int expectedCount = new FakePalindromeDataRepository().samplePalindromes.Count;

            //Act
            count = businessRepo.FetchExistingRecords().Count;

            //Assert

            Assert.AreEqual(count, expectedCount);
        }
Exemple #4
0
 public PalindromeDataTests()
 {
     dataRepo = new FakePalindromeDataRepository();
 }
Exemple #5
0
 public PalindromeBusinessTests()
 {
     dataRepo     = new FakePalindromeDataRepository();
     businessRepo = new PalindromeBusinessRepository(dataRepo);
 }