public LoginControllerTest()
        {
            _validator = Substitute.For <IValidator <LoginDTO> >();
            _sim       = Substitute.For <FakeSignInManager>();
            _um        = Substitute.For <FakeUserManager>();
            var config = FakeConfiguration.Get();

            _sut = new LoginController(_validator, _sim, _um, config);
        }
        public RegisterControllerTest()
        {
            _userRepository    = Substitute.For <IUserRepository>();
            _registerValidator = Substitute.For <IValidator <RegisterDTO> >();
            _um = Substitute.For <FakeUserManager>();
            var config = FakeConfiguration.Get();

            _sut = new RegisterController(_userRepository, _registerValidator, _um, config);
        }
 public RouteRegistrationControllerTest()
 {
     _userRepository = Substitute.For<IUserRepository>();
     _routeRepository = Substitute.For<IRouteRepository>();
     _registrationRepository = Substitute.For<IRegistrationRepository>();
     _validator = Substitute.For<IValidator<RouteRegistrationDTO>>();
     _mailService = Substitute.For<IMailService>();
     _um = Substitute.For<FakeUserManager>();
     _sut = new RouteRegistrationController(_userRepository, _routeRepository, _registrationRepository, _um, _mailService, _validator, FakeConfiguration.Get());
 }