public void FindById_WitNotExistingId_ExceptionThrowed() { // Arrange IDataMapper <CourseProfile> dataMapper = new ProfileJsonDataMapper(_profilePath); // Act var result = dataMapper.FindById(100); // Assert ArgumentException }
public void FindById_ProfileFound() { // Arrange IDataMapper <CourseProfile> dataMapper = new ProfileJsonDataMapper(_profilePath); // Act var result = dataMapper.FindById(1); // Assert Assert.AreEqual("NET_Developer", result.Name); Assert.AreEqual(31, result.Courses.Count()); }