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