You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
699 B
27 lines
699 B
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;
|
|
}
|
|
}
|
|
|