public void PostOrganisationWithNoImageTest()
        {
            _organisationControllerWithAuthenticatedUser
            .Calling(o => o.Post("testorganisatiepost", "gewoon een description",
                                 "color", new FormDataCollection(new List <KeyValuePair <string, string> >()
                                                                 )))
            .ShouldReturn()
            .Ok()
            .WithResponseModelOfType <Organisation>()
            .Passing(o => o.Name == "testorganisatiepost");
            Organisation createdOrganisation = organisationManager.ReadOrganisation("testorganisatiepost");

            organisationManager.DeleteOrganisation(createdOrganisation.Id);
        }
Example #2
0
 public void Cleanup()
 {
     playlistManager.DeletePlaylist(playlist.Id);
     organisationManager.DeleteOrganisation(organisation.Id);
     userManager.DeleteUser(_userWithOrganisation.Email);
     userManager.DeleteUser(_userWithoutOrganisation.Email);
 }