public void EndSession_WithoutSubsidizedPrice_Ok() { _tutorMoq.Setup(s => s.Price).Returns(new TutorPrice(10, 5)); var studyRoomSession = new StudyRoomSession(_studyRoom.Object, "testId"); var prop = studyRoomSession.GetType().GetProperty("Created"); prop.SetValue(studyRoomSession, DateTime.UtcNow.AddHours(-1)); studyRoomSession.EndSession(); studyRoomSession.Price.Should().NotBeNull(); studyRoomSession.Price.Should().Be(5M); }