Exemple #1
0
        public void ThatABrandFactoryCanBeReturned()
        {
            var factory = (BrandFactory)FactoryManager.Get <Brand, BrandDto>(new BrandDto());

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

            Assert.IsInstanceOfType(factory, typeof(UnitFactory));
        }