Ejemplo n.º 1
0
        public async Task EnrollPolicyTests_OwnerNames(string name)
        {
            var policy = await _petPolicyProvider.Create(
                new PetOwner
            {
                Name           = name,
                CountryIsoCode = "USA",
                Email          = "*****@*****.**"
            });

            policy.Name.Should().Be(name);
            policy.CountryIsoCode.Should().Be("USA");
            policy.Email.Should().Be("*****@*****.**");
        }
        public async Task <IHttpActionResult> PostPetOwner(PetOwner petOwner)
        {
            var result = await _policyProvider.Create(petOwner);

            return(Created(string.Empty, result));
        }