Ejemplo n.º 1
0
 public GetDatasetBlobModel Build()
 {
     _lastUpdatedBy = _lastUpdatedBy ?? new ReferenceBuilder();
     return(new GetDatasetBlobModel
     {
         Filename = _filename ?? NewRandomString() + ".xslx",
         Version = _version.GetValueOrDefault(NewRandomNumberBetween(1, 99)),
         DatasetId = _datasetId ?? NewRandomString(),
         DefinitionId = _definitionId ?? NewRandomString(),
         Description = _description ?? NewRandomString(),
         Comment = _comment ?? NewRandomString(),
         LastUpdatedById = _lastUpdatedBy.Build().Id,
         LastUpdatedByName = _lastUpdatedBy.Build().Name,
         FundingStreamId = _fundingStreamId ?? NewRandomString(),
         MergeExistingVersion = _mergeExistingVersion.GetValueOrDefault(false)
     });
 }
Ejemplo n.º 2
0
        public GetDatasetBlobModelBuilder WithLastUpdatedBy(ReferenceBuilder lastUpdatedBy)
        {
            _lastUpdatedBy = lastUpdatedBy;

            return(this);
        }