public MapsController(ILocationServices _locationServices, ICommentServices _commentServices)
 {
     locationsServices = _locationServices;
     commentServices = _commentServices;
     locationController = new LocationsController(_locationServices, _commentServices);
     speechWebServicesController = new SpeechWebServicesController(_commentServices);
 }
 public MapsController()
 {
     locationsServices = new LocationServices(new SmartAudioCityGuideEntities());
     commentServices = new CommentServices(new SmartAudioCityGuideEntities());
     locationController = new LocationsController();
     speechWebServicesController = new SpeechWebServicesController();
 }
 public void talkThisTest()
 {
     SpeechWebServicesController target = new SpeechWebServicesController(iCommentServices.Object);
     string talk = "teste";
     string code = "teste";
     var actual = target.talkThis(talk, code);
     Assert.IsNotNull(actual);
 }
 public void convertStreamToByteBufferTest()
 {
     SpeechWebServicesController target = new SpeechWebServicesController(iCommentServices.Object);
     Random random = new Random();
     int rand = random.Next(0,10);
     MemoryStream theStream = new MemoryStream();
     for (int i = 0; i < rand; i++)
         theStream.WriteByte(1);
     theStream.Position = 0;
     var actual = target.convertStreamToByteBuffer(theStream);
     Assert.IsNotNull(actual);
 }
 public void sendLastCommentFromIdLocationTest()
 {
     List<Comments> comments = new List<Comments>();
     Comments comment = new Comments();
     comment.description = "Teste";
     comments.Add(comment);
     iCommentServices.Setup(m => m.findCommentByIdLocation(It.IsAny<int>())).Returns(comments);
     SpeechWebServicesController target = new SpeechWebServicesController(iCommentServices.Object);
     string idLocation = "1";
     string code = "teste";
     var actual = target.sendLastCommentFromIdLocation(idLocation, code);
     Assert.IsNotNull(actual);
 }
 public string getSoundCommentFromLocationAndTypeOfComment(int idLocation,int idTypeOfComment, string code)
 {
     SpeechWebServicesController speechWebServicesController = new SpeechWebServicesController();
     return speechWebServicesController.sendLastSoundCommentFromIdLocationAndTypeOfComment(idLocation, idTypeOfComment, code);
 }
 public UserLocationWebServicesController(ICodeServices _codeServices, IUserLocationServices _userLocationServices,ICommentServices _commentServices)
 {
     codeServices = _codeServices;
     userLocationServices = _userLocationServices;
     speechWebServices = new SpeechWebServicesController(_commentServices);
 }
 public UserLocationWebServicesController()
 {
     codeServices = new CodeServices(new SmartAudioCityGuideEntities());
     userLocationServices = new UserLocationServices(new SmartAudioCityGuideEntities());
     speechWebServices = new SpeechWebServicesController();
 }