public void Given_A_ServerPark_Exists_When_I_Call_GetServerPark_Then_The_Correct_Service_Is_Called()
        {
            //act
            _sut.GetServerPark(_connectionModel, _serverParkName);

            //assert
            _connectedServerMock.Verify(v => v.GetServerPark(_serverParkName), Times.Once);
        }
Exemplo n.º 2
0
        public void Given_A_ServerPark_Exists_When_I_Call_GetServerPark_Then_The_Correct_ServerPark_Is_Returned()
        {
            //act
            var result = _sut.GetServerPark(_connectionModel, _serverParkName);

            //assert
            Assert.IsNotNull(result);
            Assert.IsInstanceOf <IServerPark>(result);
            Assert.AreSame(_serverParkMock.Object, result);
        }