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(); }
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(); }