public void GetSeasonStandings() { // Arrange var repository = new StoredProcedureRepository(); var dbContext = A.Fake <ProFootballEntities>(); var seasonID = 2017; var groupByDivision = false; A.CallTo(() => dbContext.GetSeasonStandings(A <int> .Ignored, A <bool> .Ignored)) .Returns(A.Fake <ObjectResult <GetSeasonStandings_Result> >()); // Act var result = repository.GetSeasonStandings(dbContext, seasonID, groupByDivision); // Assert A.CallTo(() => dbContext.GetSeasonStandings(seasonID, groupByDivision)).MustHaveHappenedOnceExactly(); Assert.IsInstanceOf <ObjectResult <GetSeasonStandings_Result> >(result); }