public void Should_save_a_new_sponsor_in_the_Save_action()
        {
            var userGroup = new UserGroup();

            var input = new UpdateSponsorInput();

            var controller = new SponsorController(null, PermisiveSecurityContext());

            var result = (CommandResult) controller.Edit(input, null);

            result.Success.AssertResultIs<RedirectToReturnUrlResult>();
        }
		public void Should_edit_an_existing_sponsor()
		{
			var controller = new SponsorController(S<IUserGroupRepository>(), PermisiveSecurityContext());

			var userGroup = new UserGroup();
			userGroup.Add(new Sponsor {Id = default(int)});

			controller.Edit(userGroup, new Sponsor())
				.AssertViewRendered()
				.ForView(ViewNames.Default)
				.ModelShouldBe<Sponsor>()
				.AutoMappedModelShouldBe<UpdateSponsorInput>()
				;
		}