Adding Tests and Refactoring
Functional Tests for RazorPages added
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
using ApplicationCore.Entities.OrderAggregate;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace UnitTests.Builders
|
||||
{
|
||||
@@ -34,5 +32,17 @@ namespace UnitTests.Builders
|
||||
_order = new Order(TestBuyerId, new AddressBuilder().WithDefaultValues(), itemList);
|
||||
return _order;
|
||||
}
|
||||
|
||||
public Order WithNoItems()
|
||||
{
|
||||
_order = new Order(TestBuyerId, new AddressBuilder().WithDefaultValues(), new List<OrderItem>());
|
||||
return _order;
|
||||
}
|
||||
|
||||
public Order WithItems(List<OrderItem> items)
|
||||
{
|
||||
_order = new Order(TestBuyerId, new AddressBuilder().WithDefaultValues(), items);
|
||||
return _order;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user