Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ZipUploadServiceTest"/> class.
        /// </summary>
        public ZipUploadServiceTest()
        {
            DbContext       = new Mock <IDbContext>();
            TransferService = new Mock <ITransferService>();

            ZipUploadService = new ZipUploadService(
                DbContext.Object,
                TransferService.Object);
        }
Exemple #2
0
 /// <summary>
 /// Invokes the operation under test.
 /// </summary>
 /// <returns>
 /// The result of the operation.
 /// </returns>
 private Task <string> Act()
 {
     return(ZipUploadService.ProcessFile(_requestArgument));
 }
 /// <summary>
 /// Invokes the operation under test.
 /// </summary>
 /// <returns>
 /// The result of the operation.
 /// </returns>
 private Task <int> Act()
 {
     return(ZipUploadService.StoreJsonData(_requestArgument));
 }