Ejemplo n.º 1
0
        public void MovieAgentConstructorTest()
        {
            HttpClientChannel httpClientChannel = new FakeChannel <Movie>(new Movie());
            var target = new MovieAgent(httpClientChannel);

            target.Should().NotBeNull();
        }
Ejemplo n.º 2
0
        public void GetMovieTest()
        {
            MovieAgent target   = new MovieAgent(); // TODO: Initialize to an appropriate value
            int        movieId  = 1;                // TODO: Initialize to an appropriate value
            Movie      expected = null;             // TODO: Initialize to an appropriate value
            Movie      actual;

            actual = target.GetMovie(movieId);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Ejemplo n.º 3
0
        public void MovieAgentConstructorTest1()
        {
            MovieAgent target = new MovieAgent();

            target.Should().NotBeNull();
        }
Ejemplo n.º 4
0
        //
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        internal virtual IMovieAgent CreateIMovieAgent()
        {
            IMovieAgent target = new MovieAgent(new FakeChannel <Movie>(fakeMovie));

            return(target);
        }