public void ShouldDeleteCharacterAttributeType()
        {
            var characterAttributeType = ExecuteAndReturnContent<IEnumerable<dynamic>>(() => _controller.GetCharacterAttributeTypes()).ToList().First();
            var newCharacterAttributeType = ExecuteAndReturnCreatedAtRouteContent<CharacterAttributeTypeDto>(() => _controller.PostCharacterAttributeType(characterAttributeType));

            _controller.DeleteCharacterAttributeType(newCharacterAttributeType.Id);

            var characterAttributeTypesController = new CharacterAttributeTypesController(_service);
            ExecuteAndReturn<NotFoundResult>(() => characterAttributeTypesController.GetCharacterAttributeType(newCharacterAttributeType.Id));
        }
        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 CharacterAttributeTypesController(_service);
 }