public void CreateStory_NoUpOrDownVote_RatingZeros() { // Arrange var unitOfWork = kernel.GetMock <IStorySiteUnitOfWork>(); var storyRepo = kernel.GetMock <IStoryRepository>(); unitOfWork.SetupGet(x => x.StoryRepository).Returns(storyRepo.Object); unitOfWork.Setup(x => x.Save()); StoryModel model = new StoryModel(unitOfWork.Object); // Act var story = model.CreateStory("hello", "test"); // Assert Assert.AreEqual(0, story.Rating.CurrentRating); }