public void Start() { var updator = new ScoreUpdator(); updator.Start(); _mockCalculator.Verify(p => p.GetScore(It.IsAny <Company>())); _mockScoreRepository.Verify(p => p.Create(It.IsAny <Company>(), _score)); }
public static void Initiate(ScoreUpdator updatorFunc) { if (Connected) { Dispose(); } socket = new StreamSocket(); host = new HostName(ip); UpdateScore = updatorFunc; Connected = false; }