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