Пример #1
0
        public void MigrationsNamespace_Ends_With_Dot_Routing()
        {
            //Arrange
            var configuration = new RoutingMigrationsConfiguration();

            //Act
            var migrationsNamespace = configuration.MigrationsNamespace;

            //Assert
            Assert.IsTrue(migrationsNamespace.EndsWith(".Routing"));
        }
Пример #2
0
        public void Instance_Is_DatabaseMigrationsConfiguration_Of_RoutingDatabaseContext()
        {
            //Arrange
            var type = typeof(DatabaseMigrationsConfiguration <RoutingDatabaseContext>);

            //Act
            var configuration = new RoutingMigrationsConfiguration();

            //Assert
            Assert.IsInstanceOf(type, configuration);
        }
Пример #3
0
        public void MigrationsDirectory_Is_Migrations_Back_Slash_Routing()
        {
            //Arrange
            var configuration = new RoutingMigrationsConfiguration();

            //Act
            var directory = configuration.MigrationsDirectory;

            //Assert
            Assert.IsTrue(directory == "Migrations\\Routing");
        }