Exemple #1
0
        public void WithCustomConnectionstring_WithValidConnectionstring_DoesNotThrowException()
        {
            _dbContext = new EasyMwsContext("Server=mwsql-dev2;Database=EasyMws;Trusted_Connection=True;");

            var testId = _dbContext.ReportRequestEntries.FirstOrDefault(r => r.ReportType == _testTypeName);

            Assert.NotNull(testId);
        }
Exemple #2
0
 public void Setup()
 {
     _dbContext = new EasyMwsContext();
     _dbContext.ReportRequestEntries.Add(new ReportRequestEntry {
         ReportType = _testTypeName
     });
     _dbContext.SaveChanges();
 }
        public void SetUp()
        {
            _options       = new EasyMwsOptions();
            _dbContext     = new EasyMwsContext();
            _loggerMock    = new Mock <IEasyMwsLogger>();
            _mwsClientMock = new Mock <IMarketplaceWebServiceClient>();
            var feedProcessorMock = new Mock <IFeedQueueingProcessor>();

            var reportProcessor = new ReportProcessor(_region, _merchantId, _mwsAuthToken, _options, _mwsClientMock.Object, _loggerMock.Object);

            _easyMwsClient = new EasyMwsClient(AmazonRegion.Europe, _merchantId, _mwsAuthToken, "test", "test", reportProcessor,
                                               feedProcessorMock.Object, _loggerMock.Object, _options);
        }