public void SetupContext()
        {
            ObjectFactory.GetInstance<IMySessionFactory>().ExportSchema();
            CreateInitialData();
            _athlete = new Athlete()
            {
                Nickname = "AthleteNickname",
                FirstName = "Fname",
                LastName = "Lname",
                Gender = 'M',
                TrainerSizeM = 9.5,
                SpikeSizeM = 9.5,
                Notes = "Some notes",
                Status = "Active"
            };

            _repository = new AthleteRepository();
        }
        public void Setup()
        {
            _mockSessionFactory = new Mock<IMySessionFactory>();
            _mockSettingsFactory = new Mock<ISettingsFactory>();
            _session = new Mock<ISession>();
            _transaction = new Mock<ITransaction>();
            _repository = new AthleteRepository();
            _athlete = new Athlete();

            Bootstrapper.BootstrapStructureMap();
            ObjectFactory.Inject(typeof(IMySessionFactory), _mockSessionFactory.Object);
            ObjectFactory.Inject(typeof(ISettingsFactory), _mockSettingsFactory.Object);

            _mockSessionFactory.Setup(x => x.OpenSession()).Returns(_session.Object);
            _session.Setup(x => x.BeginTransaction()).Returns(_transaction.Object);
        }