public void FunctionBase_ShouldResolveCommand() { var commandObj = new MockCommand(); serviceProviderMock .Setup(x => x.GetService(It.IsAny <Type>())) .Returns(commandObj); var result = functionBase.ResolveCommand <MockCommand>(); result.Should().Be(commandObj); }