Inheritance: BaseApiController
Ejemplo n.º 1
0
        public void Setup()
        {
            Connection = DbConnectionFactory.CreateTransient();
            DbContext = new ApplicationDbContext(Connection);

            var service = new MetadataService(DbContext);
            var smashService = new SmashAttributeTypeService(DbContext);

            CharactersController = new CharactersController(service);
            MovesController = new MovesController(service);
            MovementsController = new MovementsController(service);
            SmashAttributeTypesController = new SmashAttributeTypesController(smashService);
            CharacterAttributesController = new CharacterAttributesController(service);
            CharacterAttributeTypesController = new CharacterAttributeTypesController(service);
            NotationsController = new NotationsController(service);
            CalculatorController = new CalculatorController(DbContext);
            TestObjects = new TestObjects();

            //Startup.ConfigureAutoMapping();
        }
 public override void TestFixtureSetUp()
 {
     base.TestFixtureSetUp();
     _service = new MetadataService(Context);
     _controller = new MovementsController(_service);
 }