public void sendEmailToAuthenticateAUserTest()
 {
     EmailController target = new EmailController(); // TODO: Initialize to an appropriate value
     Users user = new Users();
     user.name = "greganati";
     target.sendEmailToAuthenticateAUser(user);
     Assert.IsNotNull(user);
 }
 public void sendEmailForFolloUserByWindowsPhoneId(string windowsPhoneId,string email)
 {
     UserLocations userLocation = userLocationServices.findUserLocationByPhoneId(windowsPhoneId);
     if (userLocation == null)
     {
         userLocation = new UserLocations();
         userLocation.latitude = 0.0;
         userLocation.longitude = 0.0;
         userLocation.windowsPhoneId = windowsPhoneId;
         userLocation.requestTime = DateTime.Now;
         userLocationServices.addUserLocation(userLocation);
         userLocation = userLocationServices.findUserLocationByPhoneId(windowsPhoneId);
     }
     EmailController emailController = new EmailController();
     userLocation.hash = cryptographyController.getMD5Hash(userLocation.id.ToString());
     userLocationServices.updateHasById(userLocation.id, userLocation.hash);
     emailController.sendEmailToFollowUser(email, userLocation.hash);
 }