public void UpdateJourney_Controller() { const int JOURNEY_COUNT = 1; int JOURNEY_ID = MockingTools.CreateJourneyId(0); var testElement = MockingTools.CreateBasicSetup(JOURNEY_COUNT); Journey updatedJourney = new Journey() { Name = "newName", UserId = 10 }; testElement.journey_controller.Put(JOURNEY_ID, updatedJourney); var result = testElement.context.Journeys.SingleOrDefault(x => x.UserId == 10 && x.Name == "newName"); Assert.IsTrue(result.Name == "newName" && result.UserId == 10); }
public void PostJourney(Journey journey) { }
public bool PutJourney(int jID, Journey journey) { return false; }
public bool DeleteJourney(Journey journey) { return false; }