public UsuariosController(IUsuarioAppService usuarioAppService, ISistemaHub sistemaHub, ISetorAppService setorAppService, 
     IPerfilAppService perfilAppService)
 {
     this.usuarioAppService = usuarioAppService;
     this.sistemaHub = sistemaHub;
     this.setorAppService = setorAppService;
     this.perfilAppService = perfilAppService;
 }
 public void Setup()
 {
     sistemaHub = new SistemaHub()
     {
         Clients = Substitute.For<IHubCallerConnectionContext<dynamic>>(),
         Groups = Substitute.For<IGroupManager>(),
         Context = Substitute.For<HubCallerContext>()
     };
 }
        public void Setup()
        {
            sistemaHub = Substitute.For<ISistemaHub>();
            setorAppService = Substitute.For<ISetorAppService>();
            perfilAppService = Substitute.For<IPerfilAppService>();
            usuarioAppService = Substitute.For<IUsuarioAppService>();

            usuariosController = new UsuariosController(usuarioAppService, sistemaHub, setorAppService, perfilAppService);
        }