Exemple #1
0
        public void Convert_Count_MoreThen_0()
        {
            //Arrange
            Response <User> response = new Response <User>()
            {
                Data = new List <User>()
                {
                    new User()
                    {
                        Token = "token"
                    }
                }
            };
            ResponseApiUserToListUserConverter converter = new ResponseApiUserToListUserConverter(response);

            //Act
            List <Server.Database.Model.User> result = converter.Convert();

            //Assert
            Assert.True(result.Count > 0);
        }
 public UserApiWorker()
 {
     _api                       = new HyperWalletLibrary.Api.User(Account.HyperWalletAccount);
     _userToApiUser             = new UserToApiUserConverter();
     _responseApiUserToListUser = new ResponseApiUserToListUserConverter();
 }