public SignalNotesTesting()
        {
            var seedInfo = new SeedingConfigData();

            this.mapper = seedInfo.GetDbAutoMapper();
            var config = seedInfo.GetConfigData();

            this.conn   = ((JsonElement)config["ConnectionStrings:FSADbConn"]).ToString();
            this.userId = seedInfo.userIds[0];
        }
Пример #2
0
        public SignalsStakeholdersTesting()
        {
            var seedInfo = new SeedingConfigData();

            this.mapper    = seedInfo.GetDbAutoMapper();
            this.userId    = seedInfo.userIds[0];
            this.anotherId = seedInfo.userIds[1];
            this.userId3   = seedInfo.userIds[2];
            this.miller    = seedInfo.userIds[3];
            var config = seedInfo.GetConfigData();

            this.conn = ((JsonElement)config["ConnectionStrings:FSADbConn"]).ToString();
        }
Пример #3
0
        public DbSimsContextFixture()
        {
            var seedInfo = new SeedingConfigData();

            this.Config = seedInfo.GetConfigData();
            var conn = ((JsonElement)Config["ConnectionStrings:FSADbConn"]).ToString();

            this.titleList = File.ReadAllLines("./Setup/ListOfTitles.txt");
            this.dbConn    = new SqlConnection();
            this.services  = new ServiceCollection();
            this.UserId    = ((JsonElement)Config["username"]).ToString();
            SetUpDbContext(conn);
            Seed();
        }
        public AuditLogTesting()
        {
            var cfg = new MapperConfigurationExpression();

            cfg.AddProfile <SimsDbMappingProfile>();
            var mapperConfig = new MapperConfiguration(cfg);

            this.mapper = new Mapper(mapperConfig);
            var seedInfo = new SeedingConfigData();

            this.userId = seedInfo.userIds[0];

            var config = seedInfo.GetConfigData();

            this.conn = ((JsonElement)config["ConnectionStrings:FSADbConn"]).ToString();
        }
        public OnlineFormDbTests()
        {
            var cfg = new MapperConfigurationExpression();

            cfg.AddProfile <SimsDbMappingProfile>();
            var mapperConfig = new MapperConfiguration(cfg);

            this.mapper = new Mapper(mapperConfig);

            var seedInfo = new SeedingConfigData();

            this.userId    = seedInfo.userIds[0];
            this.anotherId = seedInfo.userIds[1];
            this.userId3   = seedInfo.userIds[2];
            this.miller    = seedInfo.userIds[3];
            var config = seedInfo.GetConfigData();

            this.conn = ((JsonElement)config["ConnectionStrings:FSADbConn"]).ToString();
        }