29 lines
789 B
C#
29 lines
789 B
C#
using Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate;
|
|
|
|
namespace Microsoft.eShopWeb.UnitTests.Builders
|
|
{
|
|
public class AddressBuilder
|
|
{
|
|
private Address _address;
|
|
public string TestStreet => "123 Main St.";
|
|
public string TestCity => "Kent";
|
|
public string TestState => "OH";
|
|
public string TestCountry => "USA";
|
|
public string TestZipCode => "44240";
|
|
|
|
public AddressBuilder()
|
|
{
|
|
_address = WithDefaultValues();
|
|
}
|
|
public Address Build()
|
|
{
|
|
return _address;
|
|
}
|
|
public Address WithDefaultValues()
|
|
{
|
|
_address = new Address(TestStreet, TestCity, TestState, TestCountry, TestZipCode);
|
|
return _address;
|
|
}
|
|
}
|
|
}
|