public void ShowEpisodesService_Create_calls_Create_method() { var showEpisode = new ShowEpisodeDTO { Id = 456, Episode = 2, Season = 3, ShowId = 4, UserId = 78 }; bool isCreateCalled = false; var mock = new Mock <IUnitOfWork>(); mock.Setup(a => a.ShowEpisodes.Create(It.Is <ShowEpisode>(se => (se.Id == showEpisode.Id) && (se.Episode == showEpisode.Episode) && (se.Season == showEpisode.Season) && (se.ShowId == showEpisode.ShowId) && (se.UserId == showEpisode.UserId)))).Callback(() => isCreateCalled = true); service = new ShowEpisodesService(mock.Object); service.Create(showEpisode); Assert.IsTrue(isCreateCalled); }