public void CreateGetLastTenGreetingsActionTest() { var action = A.Fake <IGetLastTenGreetingsAction>(); var resourceProvider = A.Fake <IResourceProvider>(); A.CallTo(() => resourceProvider.CreateResource <IGetLastTenGreetingsAction>()).Returns(action); var sut = new ActionFactory(resourceProvider); var result = sut.CreateGetLastTenGreetingsAction(); result.Should().NotBeNull(); }