I am using Snowflake Connector to communicate my .NET Core application with Snowflake. My requirement is to write MS unit tests for the repository layer
My repository class looks like:
using (IDbConnection conn = new SnowflakeDbConnection())
{
conn.ConnectionString = ConnectionString;
conn.Open();
var cmd = conn.CreateCommand();
cmd.CommandText = $"SELECT * from TABLENAME";
var reader = cmd.ExecuteReader();
while (reader.Read())
{
--do some operation
}
conn.Close();
}
Do I need to perform unit tests on the original Snowflake account or is there any approach like In-Memory?
Could you please help me with this issue?