public ApplicationInfoServiceTests() { const string fileName = "MyFile"; var fileReaderService = new Mock <IFileReaderService>(); fileReaderService.Setup(_ => _.ReadAllText(It.IsAny <string>())) .Returns("{ 'build': { 'buildNumber': 'some_number'}}"); _applicationInfoService = new ApplicationInfoService(fileReaderService.Object, fileName); }
public SettingsPage() { InitializeComponent(); _applicationInfoService = new ApplicationInfoService(); _systemService = new SystemService(); }