Esempio n. 1
0
 public void Init()
 {
     _trelloFake = A.Fake<ITrello>();
     var unityContainer = new UnityContainer();
     Ioc.Configure(unityContainer);
     unityContainer.RegisterInstance(_trelloFake);
     var trelloLists = new []{new List{Name = ListName, Id = "1"}};
     A.CallTo(() => _trelloFake.Lists.ForBoard(TrelloClient.BoardId, ListFilter.All)).Returns(trelloLists);
     var config = A.Fake<ITrelloConfig>();
     A.CallTo(() => config.BoardId).Returns("id");
     _trelloClient = new TrelloClient(config);
 }
Esempio n. 2
0
 public void CleanUp()
 {
     _trelloFake = null;
     _trelloClient = null;
 }