public override Bot Invoke(Tuple <Market, Selection, BotParameters, IBfexplorerService> tupledArg) { Market market = tupledArg.Item1; Selection selection = tupledArg.Item2; BotParameters botParameters = tupledArg.Item3; IBfexplorerService bfexplorerService = tupledArg.Item4; return(new ShowSelectionSpPricesBot(market, selection, botParameters, bfexplorerService)); }
public void TearDown() { Console.WriteLine("Teardown start"); bot.Stop(); this.bot = null; this.botParameters = null; this.chat.ClearReceivedCalls(); this.chat = null; this.skype = null; this.tc = null; Console.WriteLine("Teardown finish"); }
public void SetUp() { Console.WriteLine("Setup start"); skype = Substitute.For <ISkypeAdapter>(); tc = Substitute.For <ITeamCityClient>(); chat = Substitute.For <IChat>(); skype.GetChat("").ReturnsForAnyArgs(chat); bot = new TeamCityBot.TeamCityBot(); botParameters = new BotParameters { PublishChatName = "test", Branches = new[] { "dev" } }; builds = new FakeBuilds(); tc.Builds.Returns(builds); Console.WriteLine("Setup finish"); }
public ShowSelectionSpPricesBot(Market market, Selection selection, BotParameters parameters, IBfexplorerService bfexplorerService) : base(market, selection, parameters, bfexplorerService) { this.Status = this.RunningOnSelection.Data.ContainsKey("betfairSpPrices") ? BotStatus.WaitingForOperation : BotStatus.ExecutionEnded; }