public OnboardingInfoBusinessLogic(IHttpClientService httpClientService, IOnboardingInfoSettings onboardingInfoSettings, IDynamicQueries dynamicQueries, ICosmosDbSettings dbSettings) { this.httpClientService = httpClientService; this.onboardingInfoSettings = onboardingInfoSettings; this.dynamicQueries = dynamicQueries; this.dbSettings = dbSettings; }
public OnboardingInfoBusinessLogicTests() { httpClientService = Substitute.For <IHttpClientService>(); onboardingInfoSettings = Substitute.For <IOnboardingInfoSettings>(); dynamicQueries = Substitute.For <IDynamicQueries>(); dbSettings = Substitute.For <ICosmosDbSettings>(); dynamicQueries = Substitute.For <IDynamicQueries>(); onboardingInfo = new OnboardingInfoBusinessLogic(httpClientService, onboardingInfoSettings, dynamicQueries, dbSettings); onboardingInfoSettings.HostAddress.Returns("http://smtpservice"); onboardingInfoSettings.PortNumber.Returns("467"); onboardingInfoSettings.UserName.Returns("Test"); onboardingInfoSettings.Password.Returns("Test"); onboardingInfoSettings.FromAddress.Returns("*****@*****.**"); onboardingInfoSettings.FallbackToAddress.Returns("*****@*****.**"); onboardingInfoSettings.Subject.Returns("Test Mail"); onboardingInfoSettings.FallbackBodyMessage.Returns("Test Mail Body"); }