public bool Equals(ProjectLoadFailureMessage other)
 {
     if (ReferenceEquals(null, other))
     {
         return false;
     }
     if (ReferenceEquals(this, other))
     {
         return true;
     }
     return Equals(other.ProjectToken, ProjectToken);
 }
Beispiel #2
0
 public bool Equals(ProjectLoadFailureMessage other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.ProjectToken, ProjectToken));
 }
Beispiel #3
0
            protected override void beforeEach()
            {
                message = new ProjectLoadFailureMessage
                {
                    ErrorMessage = "Bad Error!",
                    ProjectToken = new ProjectToken
                    {
                        Filename = "somefilename",
                        Name     = "somename"
                    }
                };

                ClassUnderTest.HandleMessage(message);
            }
        protected override void beforeEach()
        {
            MockFor <IProjectPersistor>().Expect(x => x.LoadFromFile(_theFileName)).Return(null);
            _projectToken = new ProjectToken
            {
                Filename = _theFileName
            };

            _projectLoadFailureMessage = new ProjectLoadFailureMessage
            {
                ProjectToken = _projectToken
            };
            _output = ClassUnderTest.LoadProject(_projectToken);
        }