public void Initialize()
        {
            // this.mockedUsers = new List<IUser>();

            // var mockedData = new Mock<IDatabase>();
            //mockedData.Setup(d => d.Users)
            //    .Returns(mockedUsers);
            // mockedData.Setup(d => d.Users.Add(It.IsAny<string>(), It.IsAny<IUser>()))
            //     .Callback<string, IUser>((s, u) => mockedUsers.Add(u));

            //this.database = mockedData.Object;

            this.database = new Database();
            this.userTracker = new UserTracker(this.database);
        }
Пример #2
0
 public Dispatcher(IIssueTracker issueTracker, IUserTracker userTracker)
 {
     this.issueTracker = issueTracker;
     this.userTracker = userTracker;
 }
 public void Initialize()
 {
     this.database = new Database();
     this.issueTracker = new IssueTracker(this.database);
     this.userTracker = new UserTracker(this.database);
 }