Esempio n. 1
0
 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));
 }
Esempio n. 3
0
        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));
 }
Esempio n. 8
0
 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));
 }
Esempio n. 9
0
 public void NoMessageShouldBeDownloaded()
 {
     Context.Transport.LocalQueue.GetMessages <EmailReceivedMessage>().Count().Should(Be.EqualTo(0));
 }
Esempio n. 10
0
 public void CheckFailStatus()
 {
     ObjectFactory.GetInstance <TransportMock>().TpQueue.GetMessages <PluginCommandResponseMessage>().Last().
     PluginCommandStatus.Should(Be.EqualTo(PluginCommandStatus.Error));
 }
Esempio n. 11
0
 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);
 }
Esempio n. 12
0
 public void SyncShouldNotBeStarted()
 {
     ObjectFactory.GetInstance <TransportMock>().LocalQueue.GetMessageInfos <TickMessage>().Count().Should(Be.EqualTo(0));
 }
Esempio n. 13
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"));
        }
Esempio n. 14
0
        protected void CheckMappingsItemsCountBase()
        {
            var mappingContainer = Context.CommandResponse.ResponseData.Deserialize <Mappings>();

            Source.ThirdPartyItems.Count.Should(Be.EqualTo(GetFromMappings(mappingContainer).Count));
        }
Esempio n. 15
0
 public void UsersShouldBeMapped(int userCount)
 {
     Profile.UserMapping.Count.Should(Be.EqualTo(userCount));
 }
Esempio n. 16
0
 public void ChechStorageCount(int count)
 {
     Profile.Get <UserDTO>().Count().Should(Be.EqualTo(count));
 }
Esempio n. 17
0
 public void PluginProfileShouldContainRevisions(int[] revisionIds)
 {
     Storage.Get <RevisionIdRelation>().Count(x => revisionIds.Contains(Int32.Parse(x.RevisionId))).Should(Be.EqualTo(revisionIds.Length));
 }
Esempio n. 18
0
 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));
 }
Esempio n. 20
0
 public void SyncIntervalShouldBe(int syncInterval)
 {
     Profile.SynchronizationInterval.Should(Be.EqualTo(syncInterval));
 }
 public void RequestShouldHaveEmailSourceType()
 {
     RequestDto().SourceType.Should(Be.EqualTo(RequestSourceEnum.Email));
 }
Esempio n. 22
0
 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));
 }
Esempio n. 24
0
 public void SvnPasswordShouldBe(string password)
 {
     Profile.Password.Should(Be.EqualTo(password));
 }
 public void RequestShouldHaveDescription(string description)
 {
     RequestDto().Description.Should(Be.EqualTo(description));
 }
Esempio n. 26
0
 public void SvnRevisionShouldBe(int revision)
 {
     Profile.StartRevision.Should(Be.EqualTo(revision.ToString()));
 }
 public void RequestShouldHaveOwner(int ownerId)
 {
     RequestDto().OwnerID.Should(Be.EqualTo(ownerId));
 }
Esempio n. 28
0
        public void AssertUserMapping(string svnuser, string tpuser)
        {
            var userMapping = _response.ResponseData.Deserialize <AutomapVcsToTpUsersCommandResponse>().UserLookups;

            userMapping[svnuser].Name.Should(Be.EqualTo(tpuser));
        }