public static void SetUpBeforeClass(TestContext context) { ushort id = 42; string name = "John Smith"; bool dbs = true; uint roles = 0, availability = 0, instruments = 0; roles |= (uint)(1 << Constants.Role.WELCOME); roles |= (uint)(1 << Constants.Role.REFRESHMENTS); roles |= (uint)(1 << Constants.Role.DUTY_MANAGER); roles |= (uint)(1 << Constants.Role.PRAYERS); availability |= (1 << 1); availability |= (1 << 3); availability |= (1 << 5); availability |= (1 << 6); instruments |= (uint)(1 << Constants.Instrument.VOICE); instruments |= (uint)(1 << Constants.Instrument.GUITAR); instruments |= (uint)(1 << Constants.Instrument.VOICE_GUITAR); worker = new Worker(id, name, roles, availability, instruments, dbs); }