예제 #1
0
        public void CreateSayHelloWorldActionTest()
        {
            var action = A.Fake<ISayHelloWorldAction>();
            var resourceProvider = A.Fake<IResourceProvider>();
            A.CallTo(()  => resourceProvider.CreateResource<ISayHelloWorldAction>()).Returns(action);
            var sut = new ActionFactory(resourceProvider);

            var result = sut.CreateSayHelloWorldAction();

            result.Should().NotBeNull();
        }
예제 #2
0
        public void CreateGetTotalNumberOfGreetingsActionTest()
        {
            var action = A.Fake<IGetTotalNumberOfGreetingsAction>();
            var resourceProvider = A.Fake<IResourceProvider>();
            A.CallTo(()  => resourceProvider.CreateResource<IGetTotalNumberOfGreetingsAction>()).Returns(action);
            var sut = new ActionFactory(resourceProvider);

            var result = sut.CreateGetTotalNumberOfGreetingsAction();

            result.Should().NotBeNull();
        }