Exemplo n.º 1
0
        public void MigrationsNamespace_Ends_With_Dot_Property()
        {
            //Arrange
            var configuration = new PropertyMigrationsConfiguration();

            //Act
            var migrationsNamespace = configuration.MigrationsNamespace;

            //Assert
            Assert.IsTrue(migrationsNamespace.EndsWith(".Property"));
        }
Exemplo n.º 2
0
        public void Instance_Is_DatabaseMigrationsConfiguration_Of_PropertyDatabaseContext()
        {
            //Arrange
            var type = typeof(DatabaseMigrationsConfiguration <PropertyDatabaseContext>);

            //Act
            var configuration = new PropertyMigrationsConfiguration();

            //Assert
            Assert.IsInstanceOf(type, configuration);
        }
Exemplo n.º 3
0
        public void MigrationsDirectory_Is_Migrations_Back_Slash_Property()
        {
            //Arrange

            var configuration = new PropertyMigrationsConfiguration();

            //Act
            var migrationsDirectory = configuration.MigrationsDirectory;

            //Assert
            Assert.IsTrue(migrationsDirectory == "Migrations\\Property");
        }