コード例 #1
0
 private void InitTestObject()
 {
     _profileService = ProfileServiceMoqs.GetStandart();
     _userManager    = UserManagerMoqs.GetStandart();
     _roleManager    = RoleManagerMoqs.GetStandart();
     _mapper         = IoContainer.Resolve <IMapper>();
     _testObject     = new UserService(_userManager, _roleManager, _profileService, _mapper);
 }
コード例 #2
0
 private void InitTestObject()
 {
     _profileProvider = ProfileProviderMoqs.GetStandart();
     _userManager     = UserManagerMoqs.GetStandart();
     _imageService    = ImageServiceMoqs.GetStandart();
     _mapper          = IoContainer.Resolve <IMapper>();
     _testObject      = new ProfileService(_profileProvider, _userManager, _imageService, _mapper);
 }