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);
        }
Пример #2
0
 public SettingsPage()
 {
     InitializeComponent();
     _applicationInfoService = new ApplicationInfoService();
     _systemService          = new SystemService();
 }