title: What is the purpose of using two blank parentheses followed by the arrow in c#
body: <p>What is the purpose of the two parentheses  and arrow</p>
  
  <blockquote>
    <p>service.GetDeviceLOV = () =></p>
  </blockquote>
  
  <p>I have been trying to figure out its function. Down below is the whole method which was used for unit testing. Hope this help give it context.    </p>
  
  <pre><code>//A test for GetDeviceTypes
      [TestMethod()]
      [HostType("Moles")]
      public void GetDeviceTypesTest()
      {
          SetUpMoles();
          Login ();
  
  
          service.GetDeviceLOV = () =&gt;
          {
              return new List&lt;DeviceLOV&gt;() { 
  
              new DeviceLOV{DeviceType = "Type 1"},
              new DeviceLOV{DeviceType = "Type 2"},
              new DeviceLOV {DeviceType = "Type 1"}
  
          };
          };
  
  
  
          List&lt;string&gt; actual;
          actual = presenter.GetDeviceTypes();
  
          Assert.AreEqual(2, actual.Count ,"actual.Count Should = 2");
  
      }
  </code></pre>