Ejemplo n.º 1
0
        public void CheckUpdate()
        {
            var         organiser    = oFactory.StoreNew(OrganisersTest.MakeOrganiser());
            GettinEvent eventToStore = MakeEvent(organiser);
            var         storedEvent  = SUT.StoreNew(eventToStore);

            storedEvent.Description = "Take me back to wonderland";
            var updatedEvent = SUT.Update(storedEvent);

            Assert.True(updatedEvent.Description == storedEvent.Description);
        }
Ejemplo n.º 2
0
        public void CheckGet()
        {
            var         organiser    = oFactory.StoreNew(OrganisersTest.MakeOrganiser());
            GettinEvent eventToStore = MakeEvent(organiser);
            var         storedEvent  = SUT.StoreNew(eventToStore);

            var gottenEvent = SUT.GetByID(storedEvent.PublicID);

            Assert.Greater(gottenEvent.PublicID.Length, 0);
            Assert.True(gottenEvent.Name == eventToStore.Name);
            // same test for brevity here.
        }
Ejemplo n.º 3
0
        public void CheckPost()
        {
            var         organiser    = oFactory.StoreNew(OrganisersTest.MakeOrganiser());
            GettinEvent eventToStore = MakeEvent(organiser);
            var         storedEvent  = SUT.StoreNew(eventToStore);

            Assert.Greater(storedEvent.PublicID.Length, 0);
            // Assert.True(storedEvent.Name == eventToStore.PublicID);
            // we could test all the properties here but if we're getting an ID,
            // we ASSUME the tests on the actual api cover the completeness
            // of the rest
        }