static Toggles() { _toggles = new FalseToggles(); }
public static void SetInstance(IToggles toggles) { // Threadsafe: reference assignment/reading is guaranteed to be atomic. _toggles = toggles; }
public override void Given() { _toggles = FakeToggles.MockToggles(); Toggles.SetInstance(_toggles); }
public ToggleServices(IServices services, IToggles toggles) { this.services = services; this.toggles = toggles; }
public SampleDataController(IToggles toggles) => _toggles = toggles;