Files
eShopOnWeb/src/ApplicationCore/Services/UriComposer.cs
Steve Smith 0eb4d72b89 Refactoring and Adding Tests (#58)
* Moving Identity seeding to its own class and method.

* Adding tests for AddItem

* Added catalog api controller and functional tests
Added and cleaned up some comments

* Adding integration tests for OrderRepository

* Getting integration test for order working with inmemory db
2017-10-20 12:52:42 -04:00

18 lines
505 B
C#

using ApplicationCore.Interfaces;
using Microsoft.eShopWeb;
namespace ApplicationCore.Services
{
public class UriComposer : IUriComposer
{
private readonly CatalogSettings _catalogSettings;
public UriComposer(CatalogSettings catalogSettings) => _catalogSettings = catalogSettings;
public string ComposePicUri(string uriTemplate)
{
return uriTemplate.Replace("http://catalogbaseurltobereplaced", _catalogSettings.CatalogBaseUrl);
}
}
}