예제 #1
0
        public UserServiceTest()
        {
            _mockUserData = new MockUserData();
            connection    = new SqliteConnection("DataSource=:memory:");
            connection.Open();
            var options = new DbContextOptionsBuilder <TestDbInstance>()
                          .UseSqlite(connection)
                          .Options;

            // Create the schema in the database
            context = new TestDbInstance(options);
            context.Database.EnsureCreated();
        }