public void GivenIHaveAnApprenticeshipCancelled() { Given(@"I have an Apprenticeship Changes To Review"); When(@"apprenticeship_update_created message get publish"); var apprenticeshipchange = _objectContainer.Resolve <ApprenticeshipUpdateCreated>(); var apprenticeshipCancelled = _testMessages.ApprenticeshipUpdateCancelled(apprenticeshipchange.AccountId, apprenticeshipchange.ProviderId, apprenticeshipchange.ApprenticeshipId); _objectContainer.RegisterInstanceAs(apprenticeshipCancelled); }