public void ShouldGetSharesCount() { // Arrange reportsService = new ReportsService( operationTableRepository: this.operationTableRepository, sharesNumberTableRepository: this.sharesNumberTableRepository, balanceTableRepository: this.balanceTableRepository, shareTableRepository: this.shareTableRepository, clientTableRepository: this.clientTableRepository); // Act var count = reportsService.GetSharesCount(); // Assert this.shareTableRepository.Received(1).GetSharesCount(); if (count != 3) { throw new ArgumentException("Result count is not 9"); } }