public QueryTestFixture()
    {
        Context = SurveyContextFactory.Create();

        var configurationProvider = new MapperConfiguration(cfg =>
        {
            cfg.AddProfile <MappingProfile>();
        });

        Mapper = configurationProvider.CreateMapper();
    }
Example #2
0
    protected CommandTestBase()
    {
        var configurationProvider = new MapperConfiguration(cfg =>
        {
            cfg.AddProfile <MappingProfile>();
        });

        Mapper  = configurationProvider.CreateMapper();
        Context = SurveyContextFactory.Create();

        SurveyContextFactory.SeedSampleData(Context).GetAwaiter().GetResult();
    }
Example #3
0
 public void Dispose()
 {
     SurveyContextFactory.Destroy(Context);
 }
 public async Task InitializeAsync()
 {
     await SurveyContextFactory.SeedSampleData(Context);
 }