public void GetAddressSuccessfully()
 {
     var repo = new AddressRepository();
     var address = repo.GetAddressById("07ed45e5-bb9d-459f-bb7b-a02ecb38f443");
     Assert.IsNotNull(address);
     Assert.AreEqual("07ed45e5-bb9d-459f-bb7b-a02ecb38f443", address.Id);
 }
Exemplo n.º 2
0
        public void GetAddressSuccessfully()
        {
            var content = File.ReadAllText("../../Fixtures/address_get_by_id.json");

            var client = GetMockClient(content);

            var repo = new AddressRepository(client.Object);

            var address = repo.GetAddressById("07ed45e5-bb9d-459f-bb7b-a02ecb38f443");
            client.VerifyAll();
            Assert.IsNotNull(address);
            Assert.AreEqual("07ed45e5-bb9d-459f-bb7b-a02ecb38f443", address.Id);
        }