コード例 #1
0
        public TimeEntryHealthContributorTest()
        {
            _repository = new Mock <ITimeEntryRepository>();

            var factory = new Mock <ITimeEntryRepositoryFactory>();

            factory.Setup(f => f.Create())
            .Returns(_repository.Object);

            _contributor = new TimeEntryHealthContributor(factory.Object);
        }
コード例 #2
0
 public TimeEntryHealthContributorTest()
 {
     _repository  = new Mock <ITimeEntryRepository>();
     _contributor = new TimeEntryHealthContributor(_repository.Object);
 }