public void IsVirtual()
        {
            // Arrange
            var mockedDbSet = new Mock <IDbSet <Notification> >();
            var context     = new MeetMeDbContext();

            // Act
            bool isVirtual = context.GetType().GetProperty("Notifications").GetGetMethod().IsVirtual;

            // Assert
            Assert.IsTrue(isVirtual);
        }
Exemple #2
0
        public void IsVirtual()
        {
            // Arrange
            var mockedDbSet = new Mock <IDbSet <CustomUser> >();
            var context     = new MeetMeDbContext();

            // Act
            bool isVirtual = context.GetType().GetProperty("Comments").GetGetMethod().IsVirtual;

            // Assert
            Assert.IsTrue(isVirtual);
        }