예제 #1
0
        public void GetExistingDogShouldReturnOk()
        {
            var dogDto = new DogDto

            {
                Breed     = DogBreed.German_Shepherd,
                Name      = "Major",
                ImageData = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
            };

            _ = Controller.PostDog(dogDto, apiVersion);

            var result = Controller.GetDog(1, apiVersion);

            Assert.IsType <OkObjectResult>(result);
        }