anchor.diff:          test: bool
       }
   
  -    let envVarRequired key = 
  +    let envVarRequired key =
           let value = System.Environment.GetEnvironmentVariable key
   
           if isNull value then failwithf "Environment Variable \"%s\" was not found." key
  
positive.code:         let swuTemplateId = envVarRequired "SCI_TALLY_SWU_TEMPLATE_ID"
          let formatEmail name = sprintf "%s@%s" name emailDomain
  
          let emailRecipient: SwuRecipient = 
              if isLive then { name = "Mike"; address = formatEmail "mikef" }
              else { name = "Joshua Harms"; address = formatEmail "josh" }
          let emailCcs: SwuRecipient list =
              if isLive then 
                  [
                      {
                          name = "Tim"
                          address = formatEmail "tim"
                      }
                      {
                          name = "Joshua Harms"
                          address = formatEmail "josh"
                      }
                      {
                          name = "Leta"
                          address = formatEmail "letaf"
                      }
                  ]
              else []
          let sender = 
              {
                  name = "KMSignalR Superintendent"
                  address = formatEmail "superintendent"
                  replyTo = formatEmail "superintendent" 
              }    
  
          let base64HeaderValue = 
              sprintf "%s:" swuKey 
              |> Text.Encoding.UTF8.GetBytes 
              |> Convert.ToBase64String
          let header = Custom ("Authorization", sprintf "Basic %s" base64HeaderValue) 
          let url = "https://api.sendwithus.com/api/v1/send"
          let message = 
              {
                  template = swuTemplateId
                  recipient = emailRecipient
                  cc = emailCcs
                  sender = sender
                  template_data = 
                      {
                          date = tallyStartDate.ToString ("MMM dd, yyyy")
                          tally = tally
  
negative.code:         let endDate = midnight ()
          let startDate = endDate.AddDays -7.
          let protocol = if String.contains "localhost" apiDomain then "http" else "https"
          let url =
              sprintf "%s://%s/api/v1/orders/tally/sources?since=%i&until=%i"
                  protocol
                  apiDomain
                  (startDate |> toJsTimestamp)
                  (endDate |> toJsTimestamp)
  
  