Initial commit of LittleShop project (excluding large archives)
- BTCPay Server integration - TeleBot Telegram bot - Review system - Admin area - Docker deployment configuration 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -51,11 +51,11 @@ public class ProductServiceTests : IDisposable
|
||||
// Act
|
||||
var result = await _productService.GetAllProductsAsync();
|
||||
|
||||
// Assert
|
||||
result.Should().HaveCount(3);
|
||||
// Assert - only active products should be returned
|
||||
result.Should().HaveCount(2);
|
||||
result.Should().Contain(p => p.Name == "Product 1");
|
||||
result.Should().Contain(p => p.Name == "Product 2");
|
||||
result.Should().Contain(p => p.Name == "Product 3");
|
||||
result.Should().NotContain(p => p.Name == "Product 3"); // Inactive product should not be returned
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -209,9 +209,10 @@ public class ProductServiceTests : IDisposable
|
||||
// Assert
|
||||
result.Should().BeTrue();
|
||||
|
||||
// Verify in database
|
||||
// Verify in database - soft delete means IsActive = false
|
||||
var dbProduct = await _context.Products.FindAsync(productId);
|
||||
dbProduct.Should().BeNull();
|
||||
dbProduct.Should().NotBeNull();
|
||||
dbProduct!.IsActive.Should().BeFalse();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user