예제 #1
0
        public NotificationApplicationFactoryTests()
        {
            userContext     = A.Fake <IUserContext>();
            numberGenerator = A.Fake <INotificationNumberGenerator>();

            A.CallTo(() => userContext.UserId).Returns(new Guid("246D5402-C835-4448-AFF0-37940B9ED436"));
            A.CallTo(() => numberGenerator.GetNextNotificationNumber(UKCompetentAuthority.England))
            .Returns(6000);

            factory = new NotificationApplicationFactory(userContext, numberGenerator);
        }
        public NotificationApplicationFactoryTests()
        {
            userContext = A.Fake<IUserContext>();
            numberGenerator = A.Fake<INotificationNumberGenerator>();

            A.CallTo(() => userContext.UserId).Returns(new Guid("246D5402-C835-4448-AFF0-37940B9ED436"));
            A.CallTo(() => numberGenerator.GetNextNotificationNumber(UKCompetentAuthority.England))
                .Returns(6000);

            factory = new NotificationApplicationFactory(userContext, numberGenerator);
        }
예제 #3
0
 public NotificationApplicationFactory(IUserContext userContext, INotificationNumberGenerator numberGenerator)
 {
     this.userContext     = userContext;
     this.numberGenerator = numberGenerator;
 }
 public NotificationApplicationFactory(IUserContext userContext, INotificationNumberGenerator numberGenerator)
 {
     this.userContext = userContext;
     this.numberGenerator = numberGenerator;
 }