public MainStatusResponseType ProcessTests(string emailAddress) { // arrange var mockConfiguration = new Mock<IConfiguration<KeyAuthentication>>(); mockConfiguration.Setup(r => r.Get).Returns(() => new KeyAuthentication { LicenseKey = MyLicenseKey }); var defaultClient = new DefaultClient(mockConfiguration.Object); // act var verificationResponse = defaultClient.Process(new VerificationRequest { Email = emailAddress }); // assert return verificationResponse.Result; }