public void UserMappingShouldBe(string subversion, string targetprocess) { Profile.UserMapping[subversion.Trim()].Name.Should(Be.EqualTo(targetprocess.Trim())); }
public void RequestShouldHaveProject(int projectId) { RequestDto().ProjectID.Should(Be.EqualTo(projectId)); }
public void UsersShouldBeMapped(int mappedUsersAmount) { var userMapping = _response.ResponseData.Deserialize <AutomapVcsToTpUsersCommandResponse>().UserLookups; userMapping.Count.Should(Be.EqualTo(mappedUsersAmount)); }
public void RequestDescriptionShouldBe(string description) { var request = Transport.TpQueue.GetMessages <UpdateCommand>().Where(x => x.Dto is RequestDTO).Select(x => x.Dto as RequestDTO).First(); request.Description.Should(Be.EqualTo(description)); }
public void RequestShouldBeCreated() { Transport.TpQueue.GetMessages <CreateCommand>().Count(x => x.Dto is RequestDTO).Should(Be.EqualTo(1)); }
public void CheckMappingItemsCount(int count) { Profile.GetProfile <BugzillaProfile>().PrioritiesMapping .Count.Should(Be.EqualTo(count)); }
public void ShouldFindMaxToRevision() { ((TfsRevisionId)_comparer.FindMaxToRevision(_revisionRanges)).Time.Should( Be.EqualTo(((TfsRevisionId)_revisionRanges[2].ToChangeset).Time)); }
public void MessageShouldBeDownloaded(string uid) { Context.Transport.LocalQueue.GetMessages <EmailReceivedMessage>().Count().Should(Be.EqualTo(1)); Context.Transport.LocalQueue.GetMessages <EmailReceivedMessage>().First().Mail.MessageUidDto.UID.Should(Be.EqualTo(uid)); }
public void NoMessageShouldBeDownloaded() { Context.Transport.LocalQueue.GetMessages <EmailReceivedMessage>().Count().Should(Be.EqualTo(0)); }
public void CheckFailStatus() { ObjectFactory.GetInstance <TransportMock>().TpQueue.GetMessages <PluginCommandResponseMessage>().Last(). PluginCommandStatus.Should(Be.EqualTo(PluginCommandStatus.Error)); }
public void SyncShouldBeStarted(string profileName) { ObjectFactory.GetInstance <TransportMock>().LocalQueue.GetMessageInfos <TickMessage>().Count().Should(Be.EqualTo(1)); ObjectFactory.GetInstance <TransportMock>().LocalQueue.GetMessageInfos <TickMessage>().Single( x => x.ProfileName == profileName).Should(Be.Not.Null); }
public void SyncShouldNotBeStarted() { ObjectFactory.GetInstance <TransportMock>().LocalQueue.GetMessageInfos <TickMessage>().Count().Should(Be.EqualTo(0)); }
public void ShouldDefiniteNames() { var txtString = "Hello! How are you?Are going to another place, Nikitos? Ok...Good buy.No..."; var text = new Termins.Text(txtString, _analyzerManager); var result = text.Sentenses.ToList(); result.SelectMany(c => c.Words.Where(x => x.IsName())).First().Value.Should(Be.EqualTo("Nikitos")); }
protected void CheckMappingsItemsCountBase() { var mappingContainer = Context.CommandResponse.ResponseData.Deserialize <Mappings>(); Source.ThirdPartyItems.Count.Should(Be.EqualTo(GetFromMappings(mappingContainer).Count)); }
public void UsersShouldBeMapped(int userCount) { Profile.UserMapping.Count.Should(Be.EqualTo(userCount)); }
public void ChechStorageCount(int count) { Profile.Get <UserDTO>().Count().Should(Be.EqualTo(count)); }
public void PluginProfileShouldContainRevisions(int[] revisionIds) { Storage.Get <RevisionIdRelation>().Count(x => revisionIds.Contains(Int32.Parse(x.RevisionId))).Should(Be.EqualTo(revisionIds.Length)); }
public void SvnRepoUrlShouldBe(string svnUrl) { Profile.Uri.Should(Be.EqualTo(svnUrl)); }
public void ShouldFindMinFromRevision() { ((TfsRevisionId)_comparer.FindMinFromRevision(_revisionRanges)).Time.Should( Be.EqualTo(((TfsRevisionId)_revisionRanges[3].FromChangeset).Time)); }
public void SyncIntervalShouldBe(int syncInterval) { Profile.SynchronizationInterval.Should(Be.EqualTo(syncInterval)); }
public void RequestShouldHaveEmailSourceType() { RequestDto().SourceType.Should(Be.EqualTo(RequestSourceEnum.Email)); }
public void SvnLoginShouldBe(string login) { Profile.Login.Should(Be.EqualTo(login)); }
public void CheckStatesMappingCount(int count) { Profile.GetProfile <BugzillaProfile>().StatesMapping.Count.Should(Be.EqualTo(count)); }
public void SvnPasswordShouldBe(string password) { Profile.Password.Should(Be.EqualTo(password)); }
public void RequestShouldHaveDescription(string description) { RequestDto().Description.Should(Be.EqualTo(description)); }
public void SvnRevisionShouldBe(int revision) { Profile.StartRevision.Should(Be.EqualTo(revision.ToString())); }
public void RequestShouldHaveOwner(int ownerId) { RequestDto().OwnerID.Should(Be.EqualTo(ownerId)); }
public void AssertUserMapping(string svnuser, string tpuser) { var userMapping = _response.ResponseData.Deserialize <AutomapVcsToTpUsersCommandResponse>().UserLookups; userMapping[svnuser].Name.Should(Be.EqualTo(tpuser)); }