I have a setting repository that contains application settings that are stored in the database.
I currently have no unit test code coverage. The IService interface only contains one method for Get()
Get() returns a collection of Setting.
1. What should I be testing?
2.. What should I be naming the tests?
public class SettingServiceTest
private Mock<ISettingRepository> mockRepository;
private ISettingService service;
public void Inititalize()
mockRepository = new Mock<ISettingRepository>();
service = new SettingService(mockRepository.Object);
public void Test_Get_Settings()
.Setup(x => x.Get())
var result = service.Get();
mockRepository.Verify(x => x.Get());