Adding Tests and Refactoring

Functional Tests for RazorPages added
This commit is contained in:
Steve Smith committed 2018-05-31 12:28:55 -04:00
1 parent 5fb9e741dd
commit 814d3e249c
22 files changed
+275 -142

No files matched your search

+12 -2
View File
@@ -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;
}
}
}