protected override int Execute(DateTime when) { int result; PostAssetRequest sampleLoad = SampleFactory.BuildLoad(when); // build a search request based on the load to be posted CreateSearchRequest searchRequest = SampleFactory.BuildSearch(sampleLoad); SessionFacade session1; SessionFacade session2; if (Account1FailsLogin(out session1) || Account2FailsLogin(out session2)) { result = Result.Invalid; } else { session1.Post(sampleLoad); session2.Search(searchRequest); result = Result.Success; } return(result); }