public void SetUp()
        {
            FakeContext context = new FakeContext();

            this.sessions = new SessionRepository(context);
            this.sessioncards = new SessionCardRepository(context);

            // all other objects than 'sessioncard' are available thanks to a migration test database seed
            this.session = this.sessions.Read(1);

            this.sessioncard = new SessionCard("testimage", this.session.Id, "some text");
            this.sessioncard = this.sessioncards.Create(sessioncard);
        }
        public void SetUp()
        {
            FakeContext context = new FakeContext();

            this.accounts = new AccountRepository(context);
            this.organisations = new OrganisationRepository(context);

            // all other objects than 'organisation' are available thanks to a migration test database seed
            this.account = this.accounts.Read(1);

            this.organisation = new Organisation("NUnitMasterRace", this.account.Id);
            this.organisation = this.organisations.Create(organisation);
        }
        public void SetUp()
        {
            FakeContext context = new FakeContext();

            this.organisations = new OrganisationRepository(context);
            this.subthemes = new SubthemeRepository(context);
            this.themes = new ThemeRepository(context);

            // all other objects than 'subtheme' are available thanks to a migration test database seed
            this.organisation = this.organisations.Read(1);
            this.theme = this.themes.Read(1);

            this.subtheme = new Subtheme("NUnitMasterRace", this.organisation.Id, this.theme.Id);
            this.subtheme = this.subthemes.Create(subtheme);
        }
        public void SetUp()
        {
            FakeContext context = new FakeContext();

            this.accounts = new AccountRepository(context);
            this.organisations = new OrganisationRepository(context);
            this.themes = new ThemeRepository(context);

            // all other objects than 'theme' are available thanks to a migration test database seed
            this.account = this.accounts.Read(1);
            this.organisation = this.organisations.Read(1);

            this.theme = new Theme("testname", "descr", this.organisation.Id, this.account.Id, "tags;tag;ta;t");
            this.theme = this.themes.Create(theme);
        }
        public void SetUp()
        {
            FakeContext context = new FakeContext();

            this.organisations = new OrganisationRepository(context);
            this.sessions = new SessionRepository(context);
            this.subthemes = new SubthemeRepository(context);

            // all other objects than 'session' are available thanks to a migration test database seed
            this.organisation = this.organisations.Read(1);
            this.subtheme = this.subthemes.Read(1);

            this.session = new Session(true, 0, "NUnitMasterRace", false, 10, 10, this.organisation.Id, 1, this.subtheme.Id, DateTime.Now, DateTime.Now.AddDays(2));
            this.session = this.sessions.Create(session);
        }
        public void SetUp()
        {
            FakeContext context = new FakeContext();

            this.accounts = new AccountRepository(context);
            this.messages = new ChatMessageRepository(context);
            this.sessions = new SessionRepository(context);

            // all other objects than 'message' are available thanks to a migration test database seed
            this.account = this.accounts.Read(1);
            this.session = this.sessions.Read(1);

            this.message = new ChatMessage(account.Id, session.Id, "some message", DateTime.Now);
            this.message = this.messages.Create(message);
        }