//[InlineData("steelplaza-box-deco2")]
            //[InlineData("steelplaza-box-deco3")]
            public async void ShouldExtractTalismanData(string filename)
            {
                var stream  = new FileInfo(Path.Combine("testimages", $"{filename}.jpg")).OpenRead();
                var service = new DataExtractionService(_engine);

                var talisman = await service.ExtractFromImage(stream);

                Snapshot.Match(talisman, SnapshotNameExtension.Create(filename));
            }
Esempio n. 2
0
 public DataExtractionController(UserManager <ApplicationUser> userManager)
 {
     _DataExtractionService = new DataExtractionService();
     _userManager           = userManager;
 }
 public ImageRecognitionController(DataExtractionService dataExtractionService)
 {
     _dataExtractionService = dataExtractionService;
 }