Beispiel #1
0
        public void GetAllSharesTest()
        {
            // Arrange
            var shareRepositoryMock = Substitute.For <ISharesRepository>();

            var sut = new ShareManager(shareRepositoryMock);

            // Act
            sut.GetNumberOfShares();

            // Asserts
            shareRepositoryMock.Received(1).GetNumberOfShares();
        }