コード例 #1
0
        protected override void OnArrange()
        {
            TestConfig          = Test <Configuration> .Item;
            TestConfig.Mappings = new List <BoardMapping> {
                TestConfig.Mappings[0]
            };
            MockConfigurationProvider.Setup(x => x.GetConfiguration()).Returns(TestConfig);
            MockLeanKitClientFactory.Setup(x => x.Create(It.IsAny <LeanKitAccountAuth>())).Returns(LeanKitApi);
            var testSettings = Test <AppSettings> .Item;

            MockLocalStorage.Setup(x => x.Load()).Returns(testSettings);
            TestItem = new TestTarget(SubscriptionManager, ConfigurationProvider, LocalStorage,
                                      LeanKitClientFactory);
            TestCard = Test <CloneableCard> .Item;
            TestConfig.Mappings[0].Identity.LeanKit = BoardId;
        }
コード例 #2
0
 protected override void OnArrange()
 {
     base.OnArrange();
     MockLocalStorage.Setup(x => x.Load()).Returns(TestSettings);
 }