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

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

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