public DefaultResponseFormatterFactoryFixture() { this.rootPathProvider = A.Fake<IRootPathProvider>(); A.CallTo(() => this.rootPathProvider.GetRootPath()).Returns("RootPath"); this.serializers = new[] { A.Fake<ISerializer>() }; this.factory = new DefaultResponseFormatterFactory(this.rootPathProvider, this.serializers); }
public DefaultResponseFormatterFactoryFixture() { this.rootPathProvider = A.Fake <IRootPathProvider>(); A.CallTo(() => this.rootPathProvider.GetRootPath()).Returns("RootPath"); this.serializers = new[] { A.Fake <ISerializer>() }; this.factory = new DefaultResponseFormatterFactory(this.rootPathProvider, this.serializers); }
public DefaultResponseFormatterFactoryFixture() { this.rootPathProvider = A.Fake<IRootPathProvider>(); A.CallTo(() => this.rootPathProvider.GetRootPath()).Returns("RootPath"); this.serializerFactory = A.Fake<ISerializerFactory>(); A.CallTo(() => this.serializerFactory.GetSerializer(A<MediaRange>._)); this.factory = new DefaultResponseFormatterFactory(this.rootPathProvider, this.serializerFactory); }
public DefaultResponseFormatterFactoryFixture() { this.rootPathProvider = A.Fake<IRootPathProvider>(); A.CallTo(() => this.rootPathProvider.GetRootPath()).Returns("RootPath"); this.serializerFactory = A.Fake<ISerializerFactory>(); this.environment = A.Fake<INancyEnvironment>(); this.factory = new DefaultResponseFormatterFactory(this.rootPathProvider, this.serializerFactory, this.environment); }
public DefaultResponseFormatterFactoryFixture() { this.rootPathProvider = A.Fake <IRootPathProvider>(); A.CallTo(() => this.rootPathProvider.GetRootPath()).Returns("RootPath"); this.serializerFactory = A.Fake <ISerializerFactory>(); this.environment = A.Fake <INancyEnvironment>(); this.factory = new DefaultResponseFormatterFactory(this.rootPathProvider, this.serializerFactory, this.environment); }