Example #1
0
        public void ExecuteCorrectlyCreatesTag(
            CreateTagCommand sut,
            ITagInfo tagInfo)
        {
            tagInfo.Of(
                i => i.AccessToken == "*******"
                    && i.Owner == "jwChung"
                    && i.Repository == "CIBuild"
                    && i.ReleaseNotes == "test"
                    && i.AuthorName == "Jin-Wook Chung"
                    && i.AuthorEmail == "*****@*****.**"
                    && i.RefOrSha == "refs/heads/master"
                    && i.TagName == Guid.NewGuid().ToString("N"));

            Assert.DoesNotThrow(() => sut.Execute(tagInfo));
        }
Example #2
0
        public void ExecuteCorrectlyCreatesTag(
            CreateTagCommand sut,
            ITagInfo tagInfo)
        {
            tagInfo.Of(
                i => i.AccessToken == "*******" &&
                i.Owner == "jwChung" &&
                i.Repository == "CIBuild" &&
                i.ReleaseNotes == "test" &&
                i.AuthorName == "Jin-Wook Chung" &&
                i.AuthorEmail == "*****@*****.**" &&
                i.RefOrSha == "refs/heads/master" &&
                i.TagName == Guid.NewGuid().ToString("N"));

            Assert.DoesNotThrow(() => sut.Execute(tagInfo));
        }
Example #3
0
 public void SutIsCreateTagCommand(CreateTagCommand sut)
 {
     Assert.IsAssignableFrom<ICreateTagCommand>(sut);
 }
Example #4
0
 public void SutIsCreateTagCommand(CreateTagCommand sut)
 {
     Assert.IsAssignableFrom <ICreateTagCommand>(sut);
 }