public void SetUp() { skype = MockRepository.GenerateMock<ISkype>(); chat = MockRepository.GenerateMock<IChat>(); userCollection = MockRepository.GenerateMock<IUserCollection>(); client = MockRepository.GenerateMock<IClient>(); user = MockRepository.GenerateMock<IUser>(); configurationLoader = new ConfigurationLoader(); httpGet = MockRepository.GenerateMock<IHttpGet>(); chats = MockRepository.GenerateMock<IChats>(); messengerClient = new MessengerClient(skype, userCollection, chats); buildCollection = MockRepository.GenerateMock<IBuildCollection>(); loader = new Loader(messengerClient, buildCollection); stopper = MockRepository.GenerateMock<IStopper>(); controller = new Controller(); controller.Container.Kernel.AddComponentInstance<ISkype>(skype); controller.Container.Kernel.AddComponentInstance<IUserCollection>(userCollection); controller.Container.Kernel.AddComponentInstance<IStopper>(stopper); controller.CcTrayUrl = "http://localhost/Cctray.xml"; controller.CcTrayUsername = "******"; controller.CcTrayPassword = "******"; controller.HttpTimeout = 30; controller.Configuration = @"RealUsers.xml"; }
public Loader(IMessengerClient messengerClient,IBuildCollection buildCollection) { _messengerClient = messengerClient; _buildCollection = buildCollection; }
public void SetUp() { buildCollection = MockRepository.GenerateMock<IBuildCollection>(); }
public ContactsController(IContactRepository contactRepository, IBuildCollectionItems <Contact> resource_builder, IBuildCollection <Contact> collectionBuilder) { this.contactRepository = contactRepository; this.collectionBuilder = collectionBuilder; this.resource_builder = resource_builder; }
public UserGroups(IBuildCollection buildCollection) { _buildCollection = buildCollection; _groups = new Hashtable(); }