Exemple #1
0
 public FileUploadShould(CustomWebApplicationFactory <Startup> factory)
 {
     _repoMock = Substitute.For <IPaymentTranstactionsRepository>();
     _client   = factory.WithWebHostBuilder(b =>
     {
         b.ConfigureTestServices(services =>
         {
             services.AddSingleton(_repoMock);
         });
     }).CreateClient();
 }
Exemple #2
0
 public UploadsController(IEnumerable <FileParser> fileParsers,
                          IPaymentTranstactionsRepository repository)
 {
     _fileParsers = fileParsers;
     _repository  = repository;
 }