Exemplo n.º 1
0
 private void AssertEntitiesAreEqual(Guid id, string author, decimal wagePerHour, TimeSpan duration,
                                     PoopingEntity entityToCompareTo)
 {
     Assert.AreEqual(id, entityToCompareTo.Id);
     Assert.AreEqual(author, entityToCompareTo.Author);
     Assert.AreEqual(wagePerHour, entityToCompareTo.WagePerHour);
     Assert.AreEqual(duration, entityToCompareTo.Duration);
 }
Exemplo n.º 2
0
        public Guid Add(AddPoopingRequest request)
        {
            var poopingEntity = new PoopingEntity
            {
                Author      = request.AuthorName,
                WagePerHour = request.WagePerHour,
                Duration    = request.Duration,
                ExternalId  = Guid.NewGuid()
            };

            return(poopingRepository.Add(poopingEntity));
        }