public void test_repository_mocking() { var mockDeveloperRepository = new Mock<IDeveloperRepository>(); mockDeveloperRepository.Setup(obj => obj.Get()).Returns(_developers); var repositoryTest = new RepositoryTestClass(mockDeveloperRepository.Object); var developers = repositoryTest.GetDevelopers(); Assert.IsTrue(developers != null); }
public void test_repository_usage() { var repoTest = new RepositoryTestClass(); var developers = repoTest.GetDevelopers(); Assert.IsTrue(developers != null); }