Example #1
0
 public PrestacoesController(IUsuarioService usuarioService, IPrestacaoService prestacaoService, IMapper mapper,
                             IOptions <JsReportSettings> jsReportSettings, IViewRenderService viewRenderService)
     : base(usuarioService)
 {
     _prestacaoService  = prestacaoService;
     _mapper            = mapper;
     _jsReportSettings  = jsReportSettings.Value;
     _viewRenderService = viewRenderService;
 }
        public void JsReportSettingsPropertiesShouldBeSetAndRetrievedCorrectly()
        {
            var settings = new JsReportSettings
            {
                Uri = Uri, UsernameEmail = UsernameEmail, UsernamePassword = UsernamePassword
            };

            Assert.AreEqual(settings.Uri, Uri);
            Assert.AreEqual(settings.UsernameEmail, UsernameEmail);
            Assert.AreEqual(settings.UsernamePassword, UsernamePassword);
        }