예제 #1
0
        private static void InitializeInfrastructureForIntegrationTest()
        {
            // AutoMapper config
            Mapper.Initialize(cfg => { });

            // Provide connection string for integration test DB
            VolleyManagementDbContextFactory.ConnectionNameOrString =
                IntegrationTestConfigurationProvider.GetVolleyManagementEntitiesConnectionString();

            // Consider a first test - make sure IoC dependencies can be resolved
            IocProvider.Instance.Verify();
        }
예제 #2
0
 /// <summary>
 /// Cleans DB tables to initial state
 /// </summary>
 public static void Respawn()
 {
     Checkpoint.Reset(IntegrationTestConfigurationProvider.GetVolleyManagementEntitiesConnectionString()).Wait();
 }