Основные методы
Основные методы
Основные методы
Related in langs
Основные методы
public void ShouldExecuteActionFromFactoryAndReturnHtml() { /// Setup mockActionFactory.Setup(factory => factory.Create(request)).Returns(action).Verifiable(); mockAction.Setup(_action => _action.Execute(request)).Returns(response).Verifiable(); mockFingerprintFactory.Setup(factory => factory.BuildFromRequest(It.IsAny <IRequest>())).Returns(ConditionalGetFingerprint.NOT_AVAILABLE).Verifiable(); /// Execute & Verify Assert.AreEqual(response, controller.Do()); VerifyAll(); }