Ejemplo n.º 1
0
 public void GivenARequest(string requestType)
 {
     if (requestType == "GetClientInformation") {
         Request = new GetClientInformationRequest();
     }
     else {
         Assert.Fail("Unknown request");
     }
 }
 public GetClientInformationResponse Execute(GetClientInformationRequest request)
 {
     return new GetClientInformationResponse
     {
         Ip = PublicIp,
         MachineName = Environment.MachineName,
         OperatingSystem = Environment.OSVersion.Platform.ToString(),
         UserName = Environment.UserName,
     };
 }
 public GetClientInformationResponse Execute(GetClientInformationRequest request)
 {
     return(new GetClientInformationResponse
     {
         Ip = PublicIp,
         MachineName = Environment.MachineName,
         OperatingSystem = Environment.OSVersion.Platform.ToString(),
         UserName = Environment.UserName,
     });
 }