public void ThatABrandFactoryCanBeReturned() { var factory = (BrandFactory)FactoryManager.Get <Brand, BrandDto>(new BrandDto()); Assert.IsInstanceOfType(factory, typeof(BrandFactory)); }
protected EntityFactory <TEnt, TDto> GetFactory(TDto dto) { return(FactoryManager.Get <TEnt, TDto>(dto)); }
public void ThatAUnitFactoryCanBeReturned() { var factory = (UnitFactory)FactoryManager.Get <Unit, UnitDto>(new UnitDto()); Assert.IsInstanceOfType(factory, typeof(UnitFactory)); }