public void Setup()
        {
            adminService = new Mock<IAdminService>();
            formsAuthentication = new Mock<IFormsAuthentication>();

            service = new AdminAuthenticationService(adminService.Object, formsAuthentication.Object);
        }
Пример #2
0
        public void Setup()
        {
            adminService        = new Mock <IAdminService>();
            formsAuthentication = new Mock <IFormsAuthentication>();

            service = new AdminAuthenticationService(adminService.Object, formsAuthentication.Object);
        }
Пример #3
0
 public SessionsController(
     AdminAuthenticationService adminAuthentication,
     IMapper mapper
     )
 {
     this.adminAuthentication = adminAuthentication;
     this.mapper = mapper;
 }
 public AdminAuthenticationServiceTest()
 {
     adminsRepository           = new Mock <AdminsRepository>();
     passwordHasher             = new Mock <IPasswordHasher <Admin> >();
     configuration              = new Mock <IConfiguration>();
     adminAuthenticationService = new AdminAuthenticationServiceImpl(
         configuration.Object,
         adminsRepository.Object,
         passwordHasher.Object
         );
 }