private IHotspotContext CreateFakeHotspotContext(IHotspotSession hotspotSession) { var context = Substitute.For <IHotspotContext>(); context.HotspotSession.Returns(hotspotSession); return(context); }
private IHotspotContext CreateFakeHotspotContext(IHotspotSession hotspotSession) { var context = Substitute.For<IHotspotContext>(); context.HotspotSession.Returns(hotspotSession); return context; }
public void SetUp() { _quickParamterlessMacro = new DomainAndUsernameMacroImpl(); _hotspotSession = CreateFakeHotspotSession(); _context = CreateFakeHotspotContext(_hotspotSession); }
public QuickParameterlessMacroTests() { _quickParamterlessMacro = new DomainAndUsernameMacro(); _hotspotSession = CreateFakeHotspotSession(); _context = CreateFakeHotspotContext(_hotspotSession); }