public void HaveParameterlessConstructor()
        {
            // Arrange
            var context = new PortfolioCmsDbContext();

            // Act & Assert
            Assert.IsInstanceOf <PortfolioCmsDbContext>(context);
        }
        public void Return_InstanceOfIPortfolioCmsDbContext()
        {
            // Arrange
            var context = new PortfolioCmsDbContext();

            // Act & Assert
            Assert.IsInstanceOf <IPortfolioCmsDbContext>(context);
        }
Exemple #3
0
        public void ShouldReturnNewDbContextInstance()
        {
            // Arrange & Act
            var newContext = PortfolioCmsDbContext.Create();

            // Assert
            Assert.IsNotNull(newContext);
            Assert.IsInstanceOf <IPortfolioCmsDbContext>(newContext);
        }