public YourDetailsControllerTests()
 {
     fakeSessionStorage    = A.Fake <ISessionStorage <ContactUs> >(ops => ops.Strict());
     fakeAsyncHelper       = new AsyncHelper();
     fakeApplicationLogger = A.Fake <IApplicationLogger>(ops => ops.Strict());
     fakeSendEmailService  = A.Fake <INoncitizenEmailService <ContactUsRequest> >(ops => ops.Strict());
     fakeContext           = A.Fake <IWebAppContext>(ops => ops.Strict());
     A.CallTo(() => fakeContext.IsContentAuthoringSite).Returns(false);
 }
Example #2
0
 public YourDetailsController(
     IApplicationLogger applicationLogger,
     INoncitizenEmailService <ContactUsRequest> sendEmailService,
     IAsyncHelper asyncHelper,
     IWebAppContext context,
     ISessionStorage <ContactUs> sessionStorage) : base(applicationLogger)
 {
     this.sendEmailService = sendEmailService;
     this.asyncHelper      = asyncHelper;
     this.context          = context;
     this.sessionStorage   = sessionStorage;
 }
 public SendGridController(IApplicationLogger applicationLogger, INoncitizenEmailService <ContactUsRequest> sendEmailService, IAsyncHelper asyncHelper) : base(applicationLogger)
 {
     this.sendEmailService = sendEmailService;
     this.asyncHelper      = asyncHelper;
 }