BTDBTest.FindUnusedKeysTest.StoreJobInDictionary C# (CSharp) Method

StoreJobInDictionary() private method

private StoreJobInDictionary ( string sport, string activity ) : void
sport string
activity string
return void
        void StoreJobInDictionary(string sport, string activity)
        {
            using (var tr = _db.StartTransaction())
            {
                var sports = tr.Singleton<Directory>();
                sports.Dir[sport] = new JobMap { Jobs = new Dictionary<ulong, Job> { [0] = new Job { Duty = new Duty { Name = activity } } } };
                tr.Commit();
            }
        }