public void WhenISubmitAnActivitiyWithThisInformation(Table activityInfo) { var submittedActivity = activityInfo.CreateInstance<Activity>(); // Use (my) extension method to get a "customer" with name submittedActivity.AtCustomer = new Customer { Name = activityInfo.GetValueForField("At Customer") }; submittedActivity.Who = new Person { Name = activityInfo.GetValueForField("Who") }; var controller = CreateActivityController(); LatestActionResult = controller.Create(submittedActivity); // Update the list we're expecting back with next call to GetAllActivities() // with the submitted activity var newActivityList = ActivityRepositorySteps.InitialActivities; newActivityList.Add(submittedActivity); Substitutes.ActivtyRepository.GetAllActivities().Returns(newActivityList); }