public async Task should_register_new_account()
        {
            var rnd = new Random();
            rnd.Next(100201, 200201);
            var accountName = "testAutomationTests" + rnd.Next(100201, 200201) + "@test.com";
            var passWord = "******";

            var model = new RegistrationViewModel
            {

                Email = accountName,
                Password = passWord,
                ConfirmPassword = passWord
            };


            var response = await SUT.Register(model);


        
            var getToken = await SUT.SignIn(accountName, passWord);


            response.ShouldBeTrue();

            getToken.LatestBearerToken.ShouldNotBeNull();
            getToken.LatestBearerToken.ShouldNotBeEmpty();
            getToken.TokenExpiry.ShouldBeGreaterThan(DateTime.Now);

            getToken.ShouldNotBeNull();

        }
        public async Task<bool> Register(RegistrationViewModel model)
        {
            if (model != null)
            {
                using (
                    var accountClient = new AutoResolveWebserviceClient<object>("https://axiapp.co.uk/",
                        "api/account/register"))
                {
                    var response = await accountClient.PostAsync(model);

                    LatestResponseCode = response.StatusCode.ToString();

                    if (!response.IsSuccessStatusCode)
                    {
                        LatestError = await response.Content.ReadAsStringAsync();
                    }

                    return response.IsSuccessStatusCode;

                }

            }
            return false;
        }
        public async Task<AccountViewModel> RegisterAndSignIn(string username, string password)
        {
            var regModel = new RegistrationViewModel { Email = username, Password = password, ConfirmPassword = password };
            if (await Register(regModel))
            {
                _authorisedModel = await SignIn(username, password);
                return _authorisedModel;
            }

            throw new Exception("Couldn't register and sign in to the axiapp api");
        }