public void NoneExistingURL() { UrlFileService urlFileService = new UrlFileService(); string inValidUrl = "None"; var nonExistingUrlResult = urlFileService.URLExists(inValidUrl); Assert.False(nonExistingUrlResult); }
public void GetProductById_NoneExistingId() { ChemiCleanDBEntities _dbContext = new ChemiCleanDBEntities(); ProductRepository productsRepository = new ProductRepository(_dbContext); ProductDocumentRepository productDocumentRepository = new ProductDocumentRepository(_dbContext); UrlFileService urlFileService = new UrlFileService(); UnitOfWork unitOfWork = new UnitOfWork(_dbContext); ProductDocumentService productDocumentService = new ProductDocumentService(productDocumentRepository, urlFileService, unitOfWork); ProductService productsService = new ProductService(productsRepository, productDocumentService, unitOfWork); var NonExistingFile = productsService.GetProduct(0); Assert.Null(NonExistingFile); }