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");
 }