Exemple #1
0
 protected override void OnArrange()
 {
     MockConfigurationProvider.Setup(x => x.GetConfiguration()).Throws <ConfigurationErrorsException>();
 }
Exemple #2
0
 protected override void OnArrange()
 {
     MockConfigurationProvider.Setup(x => x.GetConfiguration()).Returns(TestConfig);
     MockLeanKitClientFactory.Setup(x => x.Create(It.IsAny <ILeanKitAccountAuth>())).Returns(LeanKitApi);
 }
Exemple #3
0
 protected override void OnArrange()
 {
     MockConfigurationProvider.Setup(x => x.GetConfiguration()).Returns(TestConfig);
     MockLeanKitClientFactory.Setup(x => x.Create(It.IsAny <LeanKitAccountAuth>())).Returns(LeanKitApi);
     MockRestClient.Setup(x => x.Execute(It.IsAny <IRestRequest>())).Returns((IRestResponse)null);
 }