Exemplo n.º 1
0
        public void CreateTeam_Success_Test()
        {
            //Arrange 

            const int expectedReturnId = 0;
            _repositoryMock.Setup(r => r.Create(_storedTeam)).Returns(Task.FromResult(expectedReturnId));
            var teamFacade = new TeamAdapter(_repositoryMock.Object);

            //Act
            var actualId = teamFacade.Create(_team);

            //Assert
            Assert.IsTrue(expectedReturnId == actualId.Result);
        }