The user processor.
Inheritance: IUserProcessor
コード例 #1
0
 public void Setup()
 {
     this.userRepositoryMock = new Mock<IUserRepository>();
     this.cryptoProvider = new CryptoProvider();
     this.humanTaskRepositoryMock = new Mock<IHumanTaskRepository>();
     this.reminderProcessor = new Mock<IReminderProcessor>();
     this.taskProcessor = new TaskProcessor(this.humanTaskRepositoryMock.Object, this.reminderProcessor.Object, this.userRepositoryMock.Object);
     this.userProcessor = new UserProcessor(this.userRepositoryMock.Object, this.cryptoProvider, this.taskProcessor);
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LinkedInController"/> class.
 /// </summary>
 /// <param name="userProcessor">
 /// The user processor.
 /// </param>
 /// <param name="linkedInService">
 /// The linked in service.
 /// </param>
 public LinkedInController(UserProcessor userProcessor, LinkedInService linkedInService)
 {
     this.userProcessor = userProcessor;
     this.linkedInService = linkedInService;
 }