Add option to suppress storage copy for testing

This commit is contained in:
2016-05-04 10:47:04 -04:00
parent 790930dd66
commit e9a9ae186c
5 changed files with 26 additions and 4 deletions
@@ -24,6 +24,9 @@ namespace LeafWeb.Web.Services.PiscalQueue
public void Run(LeafInput leafInput)
{
var inputFile = new PiscalLeafInput(leafInput);
// TODO: remove this, just for testing
if (string.Equals(leafInput.Email, "james.kolpack@gmail.com", StringComparison.InvariantCultureIgnoreCase))
inputFile.SuppressStorageCopy = true;
_piscalClient.RunLeafInput(inputFile);
}