Ejemplo n.º 1
0
        public Guid CreateDraftApplicationInDb(EmployeeId applicant, EmployeeId suspiciousEmployee)
        {
            var draftApplication = this._draftApplicationFactory.CreateWithAttachments(applicant, suspiciousEmployee);

            this._draftApplicationTestFixture.SaveDraftApplicationInDb(draftApplication);
            return(draftApplication.Id.Value);
        }
Ejemplo n.º 2
0
 public virtual void AddCustomInquirer(EmployeeId employeeId, AbstractUnitIndexId unitIndexId)//, UnitId emploeeyUnitId)
 {
     configurationItemList.Add(
         new UnitInquiryConfigurationItem(
             new UnitInquiryConfigurationItemId(null, employeeId, Id, unitIndexId),
             this, false, true)); // JobPositionLevel.None));
 }
Ejemplo n.º 3
0
 public void RaiseSalary(EmployeeId id, decimal amount)
 {
     _store.DatabaseCommands.Patch($"employees/{id}", new ScriptedPatchRequest
     {
         Script = $"this.Salary += {amount.ToInvariantString()};"
     });
 }
        public void EmployeeIsSavedCorrectly()
        {
            using (var tx = Session.BeginTransaction())
            {
                Session.Save(new Employee
                {
                    Id = new EmployeeId
                    {
                        Firstname = "firstName",
                        Lastname  = "lastName",
                    },
                    DateOfJoining = new DateTime(1999, 2, 26)
                });

                tx.Commit();
            }

            Session.Clear();

            using (var tx = Session.BeginTransaction())
            {
                var id = new EmployeeId
                {
                    Firstname = "firstName",
                    Lastname  = "lastName"
                };
                var employee = Session.Get <Employee>(id);
                Assert.That(employee.DateOfJoining.Year, Is.EqualTo(1999));
                tx.Commit();
            }
        }
Ejemplo n.º 5
0
        public void Parse_ValidEmployeeId()
        {
            var bookingRequest     = _defaultInputParser.Parse(_completeInput);
            var expectedEmployeeId = new EmployeeId("EMP001");

            Assert.AreEqual(expectedEmployeeId, bookingRequest.EmployeeId);
        }
Ejemplo n.º 6
0
        }                                     //per month
        //public double profit { get; set; }
        //public DateTime leaving { get; set; }//If the employee left before the final date.
        //public Enums.Cars car { get; set; }

        public override string ToString()
        {
            string str = "Contract number: " + number.ToString() + "\n";

            str += "Employer Id: " + EmployerId.ToString() + "\n";
            str += "Employee Id " + EmployeeId.ToString() + "\n";
            str += "Interview: ";
            if (interview == true)
            {
                str += "Yes,";
            }
            else
            {
                str += "No,";
            }
            str += "\nSigned: ";
            if (signed == true)
            {
                str += "Yes,";
            }
            else
            {
                str += "No,";
            }

            str += "\nNeto salary: " + netoSalary.ToString() + "\n";
            str += "Beggining date of work: " + beginning.ToShortDateString() + "\n";
            str += "Final date of work: " + final.ToShortDateString() + "\n";
            return(str);
        }
Ejemplo n.º 7
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is Shift other &&
                   ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) &&
                   ((EmployeeId == null && other.EmployeeId == null) || (EmployeeId?.Equals(other.EmployeeId) == true)) &&
                   ((LocationId == null && other.LocationId == null) || (LocationId?.Equals(other.LocationId) == true)) &&
                   ((Timezone == null && other.Timezone == null) || (Timezone?.Equals(other.Timezone) == true)) &&
                   ((StartAt == null && other.StartAt == null) || (StartAt?.Equals(other.StartAt) == true)) &&
                   ((EndAt == null && other.EndAt == null) || (EndAt?.Equals(other.EndAt) == true)) &&
                   ((Wage == null && other.Wage == null) || (Wage?.Equals(other.Wage) == true)) &&
                   ((Breaks == null && other.Breaks == null) || (Breaks?.Equals(other.Breaks) == true)) &&
                   ((Status == null && other.Status == null) || (Status?.Equals(other.Status) == true)) &&
                   ((Version == null && other.Version == null) || (Version?.Equals(other.Version) == true)) &&
                   ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) &&
                   ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)) &&
                   ((TeamMemberId == null && other.TeamMemberId == null) || (TeamMemberId?.Equals(other.TeamMemberId) == true)));
        }
 public List <AbstractJobIndexId> GetAllJobIndexIdByInquirer(EmployeeId inquirerEmployeeId)
 {
     return
         (rep.Find(i => i.ConfigurationItemId.InquirerId.PeriodId == inquirerEmployeeId.PeriodId && i.ConfigurationItemId.InquirerId.EmployeeNo == inquirerEmployeeId.EmployeeNo)
          .Select(i => i.JobIndexId).Distinct()
          .ToList());
 }
 public bool IsAllInquiryJobIndexPointsHasValue(EmployeeId inquirerId, long jobIndexId)
 {
     return
         (rep.GetQuery().Count(i => i.ConfigurationItemId.InquirerId.PeriodId == inquirerId.PeriodId &&
                               i.ConfigurationItemId.InquirerId.EmployeeNo == inquirerId.EmployeeNo &&
                               i.JobIndexId.Id == jobIndexId && i.JobIndexValue == "") == 0);
 }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is InventoryAdjustment other &&
                   ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) &&
                   ((ReferenceId == null && other.ReferenceId == null) || (ReferenceId?.Equals(other.ReferenceId) == true)) &&
                   ((FromState == null && other.FromState == null) || (FromState?.Equals(other.FromState) == true)) &&
                   ((ToState == null && other.ToState == null) || (ToState?.Equals(other.ToState) == true)) &&
                   ((LocationId == null && other.LocationId == null) || (LocationId?.Equals(other.LocationId) == true)) &&
                   ((CatalogObjectId == null && other.CatalogObjectId == null) || (CatalogObjectId?.Equals(other.CatalogObjectId) == true)) &&
                   ((CatalogObjectType == null && other.CatalogObjectType == null) || (CatalogObjectType?.Equals(other.CatalogObjectType) == true)) &&
                   ((Quantity == null && other.Quantity == null) || (Quantity?.Equals(other.Quantity) == true)) &&
                   ((TotalPriceMoney == null && other.TotalPriceMoney == null) || (TotalPriceMoney?.Equals(other.TotalPriceMoney) == true)) &&
                   ((OccurredAt == null && other.OccurredAt == null) || (OccurredAt?.Equals(other.OccurredAt) == true)) &&
                   ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) &&
                   ((Source == null && other.Source == null) || (Source?.Equals(other.Source) == true)) &&
                   ((EmployeeId == null && other.EmployeeId == null) || (EmployeeId?.Equals(other.EmployeeId) == true)) &&
                   ((TransactionId == null && other.TransactionId == null) || (TransactionId?.Equals(other.TransactionId) == true)) &&
                   ((RefundId == null && other.RefundId == null) || (RefundId?.Equals(other.RefundId) == true)) &&
                   ((PurchaseOrderId == null && other.PurchaseOrderId == null) || (PurchaseOrderId?.Equals(other.PurchaseOrderId) == true)) &&
                   ((GoodsReceiptId == null && other.GoodsReceiptId == null) || (GoodsReceiptId?.Equals(other.GoodsReceiptId) == true)));
        }
Ejemplo n.º 11
0
 public Employee Update(EmployeeId employeeId, string firstName, string lastName, Dictionary <SharedEmployeeCustomFieldId, string> customFieldIdValueList)
 {
     try
     {
         using (var tr = new TransactionScope())
         {
             var employee = employeeRep.GetBy(employeeId);
             employee.Update(firstName, lastName);
             var employeeCustomFields =
                 converter.GetSharedEmployeeCustomField(customFieldIdValueList.Keys.ToList());
             employee.UpdateCustomFieldsAndValues(
                 employeeCustomFields.ToDictionary(e => e, e => customFieldIdValueList[e.Id]), periodChecker);
             tr.Complete();
             return(employee);
         }
     }
     catch (Exception exp)
     {
         var res = employeeRep.TryConvertException(exp);
         if (res == null)
         {
             throw;
         }
         throw res;
     }
 }
Ejemplo n.º 12
0
        public ClaimsIdentity ToClaimsIdentity()
        {
            var claims = new List <Claim>
            {
                new Claim("EmployeeId", EmployeeId.ToString()),
                new Claim("EmployeeNumber", EmployeeNumber),
                new Claim(ClaimTypes.NameIdentifier, Username),
                new Claim(ClaimTypes.GivenName, FirstName),
                new Claim(ClaimTypes.Surname, LastName),
                new Claim(ClaimTypes.Email, Email),
                new Claim("Title", Title),
                new Claim("Department", Department),
                new Claim("Phone", Phone)
            };

            if (IsAdmin)
            {
                claims.Add(new Claim("IsAdmin", "true"));
            }
            if (IsApprover)
            {
                claims.Add(new Claim("IsApprover", "true"));
            }
            if (IsProcessor)
            {
                claims.Add(new Claim("IsProcessor", "true"));
            }

            return(new ClaimsIdentity(claims, CookieAuthenticationDefaults.AuthenticationScheme));
        }
Ejemplo n.º 13
0
        public void SetUp()
        {
            _mockBookingRequestInputParser = new Mock <IBookingRequestInputParser>();
            _batch = new Batch(_mockBookingRequestInputParser.Object);

            _employeeId = new EmployeeId("EMP001");
        }
Ejemplo n.º 14
0
        private IncidentApplication(IncidentApplicationId incidentApplicationId,
                                    Content content,
                                    Title title,
                                    IncidentType incidentType,
                                    EmployeeId applicantId,
                                    List <SuspiciousEmployee> suspiciousEmployees,
                                    List <Attachment> attachments,
                                    DateTime postDate,
                                    ApplicationNumber applicationNumber)
        {
            this.ApplicantId  = Guard.Argument(applicantId, nameof(applicantId)).NotNull();
            this.Content      = Guard.Argument(content, nameof(content)).NotNull();
            this.Title        = Guard.Argument(title, nameof(title)).NotNull();
            this.IncidentType = Guard.Argument(incidentType, nameof(incidentType)).NotNull();
            this.Id           = Guard.Argument(incidentApplicationId, nameof(incidentApplicationId)).NotNull();
            this.PostDate     = Guard.Argument(postDate, nameof(postDate)).NotDefault();

            this.CheckRule(new IndicateAtLeastOneSuspectRule(suspiciousEmployees));
            this.CheckRule(new ApplicantCannotBeSuspectRule(suspiciousEmployees.Select(x => x.EmployeeId).ToList(), applicantId));

            this.SuspiciousEmployees = suspiciousEmployees;
            this.ApplicationNumber   = applicationNumber;
            this.ApplicationState    = ApplicationStateValue.Created;
            this.Attachments         = attachments ?? new List <Attachment>();
        }
Ejemplo n.º 15
0
 public Employee(EmployeeId id, FullName name, Address homeAddress, decimal salary)
 {
     Id = id;
     Name = name;
     HomeAddress = homeAddress;
     Salary = salary;
 }
Ejemplo n.º 16
0
Archivo: CQRS.cs Proyecto: ravendb/docs
 public Employee Load(EmployeeId id)
 {
     Employee result;
     using (var session = _store.OpenSession())
     { result = session.Load<Employee>($"employees/{id}"); }
     return result;
 }
Ejemplo n.º 17
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((EmployeeId.GetHashCode() * 397) ^ StartDate.GetHashCode());
     }
 }
Ejemplo n.º 18
0
 public Meeting(DateTime date, TimeSpan startTime, TimeSpan endTime, EmployeeId employeeId)
 {
     _startTime  = startTime;
     _endTime    = endTime;
     _date       = date.Date;
     _employeeId = employeeId;
 }
Ejemplo n.º 19
0
 public Employee(EmployeeId id, FullName name, Address homeAddress, decimal salary)
 {
     Id          = id;
     Name        = name;
     HomeAddress = homeAddress;
     Salary      = salary;
 }
Ejemplo n.º 20
0
        public IQueryable <Booking> Filter(IQueryable <Booking> query)
        {
            if (EmployeeId.NotNullOrLessThanOne())
            {
                query = query.Where(b => b.EmployeeId == EmployeeId);
            }

            if (VehicleId.NotNullOrLessThanOne())
            {
                query = query.Where(b => b.VehicleId == VehicleId);
            }

            if (Statuses != null)
            {
                query = query.Where(b => Statuses.Any(s => s == b.Status));
            }

            if (FromDate != null)
            {
                query = query.Where(b => b.StartDate > FromDate);
            }

            if (ToDate != null)
            {
                query = query.Where(b => b.EndDate < ToDate);
            }

            if (EmployeeUserName.NotNullOrEmpty())
            {
                query = query.Where(b => b.Employee.Identity.UserName == EmployeeUserName);
            }

            return(query);
        }
 public BookingRequest(DateTime submissionTime, EmployeeId employeeId, int meetingDuration, DateTime meetingDateTime)
 {
     SubmissionTime   = submissionTime;
     EmployeeId       = employeeId;
     MeetingDuration  = meetingDuration;
     _meetingDateTime = meetingDateTime;
 }
Ejemplo n.º 22
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (EmployeeId != 0)
            {
                hash ^= EmployeeId.GetHashCode();
            }
            if (FirstName.Length != 0)
            {
                hash ^= FirstName.GetHashCode();
            }
            if (LastName.Length != 0)
            {
                hash ^= LastName.GetHashCode();
            }
            if (Email.Length != 0)
            {
                hash ^= Email.GetHashCode();
            }
            if (Address.Length != 0)
            {
                hash ^= Address.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 23
0
 public RaiseEmployeeSalaryCommand(
     EmployeeId id,
     decimal amount
     ) : base(id)
 {
     Amount = amount;
 }
        public EmployeeViewModel(object param)
        {
            var employeeClicked = param as Employee;

            if (employeeClicked != null)
            {
                EmployeeId   = employeeClicked.EmployeeId;
                FirstName    = employeeClicked.FirstName;
                LastName     = employeeClicked.LastName;
                LocationID   = employeeClicked.LocationID;
                LocationName = employeeClicked.LocationName;
                ImageURL     = employeeClicked.ImageURL;
                Title        = employeeClicked.Title;
                FullName     = employeeClicked.FullName;

                Dictionary <string, string> myDict = new Dictionary <string, string>
                {
                    { "EmployeeId", EmployeeId.ToString() },
                    { "FirstName", FirstName },
                    { "LastName", LastName },
                    { "LocationID", LocationID.ToString() }
                };
                _logger.LoggEvent("Load EmployeeViewModel", myDict);
            }
            TapCommand = new Command(OnTapped);
        }
Ejemplo n.º 25
0
 internal void EditEmployeeId(string employeeId)
 {
     _logger.Info("Entering EditEmployeeId()");
     EmployeeId.Clear();
     EmployeeId.SendKeys(employeeId);
     _logger.Info("Exiting EditEmployeeId()");
 }
Ejemplo n.º 26
0
 public EmployeeHomeAddressUpdatedEvent(
     EmployeeId employeeId,
     Address address
     ) : base(employeeId)
 {
     NewHomeAddress = address;
 }
Ejemplo n.º 27
0
 public Employee Load(EmployeeId id)
 {
     using (var session = _store.OpenSession())
     {
         return(session.Load <Employee>($"employees/{id}"));
     }
 }
        private void HandleUpdateSourceEmployeeMessage(UpdateSourceEmployeeMessage obj)
        {
            try
            {
                BindingExpression be = EmployeeId.GetBindingExpression(SfTextBoxExt.TextProperty);
                be.UpdateSource();

                BindingExpression bf = FirstName.GetBindingExpression(SfTextBoxExt.TextProperty);
                bf.UpdateSource();

                BindingExpression bm = MiddleName.GetBindingExpression(SfTextBoxExt.TextProperty);
                bm.UpdateSource();

                BindingExpression bl = LastName.GetBindingExpression(SfTextBoxExt.TextProperty);
                bl.UpdateSource();

                BindingExpression bs = NameSuffix.GetBindingExpression(SfTextBoxExt.TextProperty);
                bs.UpdateSource();

                BindingExpression ba = AddressView.txtAddress.GetBindingExpression(SfTextBoxExt.TextProperty);
                ba.UpdateSource();

                BindingExpression ba2 = AddressView.txtAddress2.GetBindingExpression(SfTextBoxExt.TextProperty);
                ba2.UpdateSource();

                BindingExpression bt = AddressView.txtZipCode.GetBindingExpression(SfTextBoxExt.TextProperty);
                bt.UpdateSource();
            }
            catch (Exception e)
            {
            }
        }
Ejemplo n.º 29
0
 public EmployeeSalaryRaisedEvent(
     EmployeeId employeeId,
     decimal amount
     ) : base(employeeId)
 {
     Amount = amount;
 }
Ejemplo n.º 30
0
        public UnitEmployee(Employee employee, Unit unit, DateTime fromDate, DateTime toDate,
                            IDictionary <UnitCustomField, string> employeeUnitCustomFieldValues,
                            AbstractUnitIndexId abstractUnitIndexId)
        {
            if (unit == null)
            {
                throw new ArgumentNullException("Unit");
            }
            if (unit.Id == null)
            {
                throw new ArgumentException("Unit.Id");
            }
            if (abstractUnitIndexId == null)
            {
                throw new ArgumentNullException("UnitIndexId");
            }


            //  this._unitIndexId = abstractUnitIndexId;
            this._unit    = unit;
            this.fromDate = fromDate;
            this.toDate   = toDate.Date;

            if (employee == null || employee.Id == null)
            {
                throw new ArgumentNullException("employee");
            }
            this.employeeId = employee.Id;
            this.employeeUnitCustomFieldValues = employeeUnitCustomFieldValues.ToDictionary(e => e.Key.Id, e => e.Value);
        }
Ejemplo n.º 31
0
        /// <summary>
        /// API to details of specfid employee with Id
        /// </summary>
        /// <param name="inputData"></param>
        /// <returns></returns>
        #region GetEmployeeDetailsWithId
        public IEnumerable <EmployeeModel> GetEmployeeDetailsWithId(EmployeeId inputData)
        {
            List <EmployeeModel> listEmployee = new List <EmployeeModel>();
            SqlConnection        connection   = DatabaseConnection();
            SqlCommand           command      = StoreProcedureConnection("spGetEmployeeDetailWithId", connection);

            command.Parameters.Add("@Id", SqlDbType.Int, 50).Value = inputData.ID;
            connection.Open();
            SqlDataReader reader = command.ExecuteReader();

            while (reader.Read())
            {
                EmployeeModel employee = new EmployeeModel
                {
                    EmployeeId = Convert.ToInt32(reader["EmployeeId"]),
                    FirstName  = reader["FirstName"].ToString(),
                    LastName   = reader["LastName"].ToString(),
                    Email      = reader["Email"].ToString(),
                    UserName   = reader["UserName"].ToString(),
                    Password   = reader["Password"].ToString(),
                    City       = reader["City"].ToString()
                };
                listEmployee.Add(employee);
            }
            connection.Close();
            return(listEmployee);
        }
Ejemplo n.º 32
0
        public override int GetHashCode()
        {
            int hashCode = 13;

            hashCode = (hashCode * 7) + EmployeeId.GetHashCode();
            return(hashCode);
        }
Ejemplo n.º 33
0
        public void ShowDictionary()
        {
            var employees = new Dictionary<EmployeeId, Employee>(31);

            var idKyle = new EmployeeId("T3755");
            var kyle = new Employee(idKyle, "Kyle Bush", 5443890.00m);
            employees.Add(idKyle, kyle);
            Console.WriteLine(kyle);

            var idCarl = new EmployeeId("F3547");
            var carl = new Employee(idCarl, "Carl Edwards", 5598120.00m);
            employees.Add(idCarl, carl);
            Console.WriteLine(carl);

            var idJimmie = new EmployeeId("C3386");
            var jimmie = new Employee(idJimmie, "Jimmie Johnson", 5024710.00m);
            employees.Add(idJimmie, jimmie);
            Console.WriteLine(kyle);

            var idDale = new EmployeeId("C3323");
            var dale = new Employee(idDale, "Dale Earhardt", 3522740.00m);
            employees[idDale] = dale;
            Console.WriteLine(dale);

            var idJeff = new EmployeeId("C3234");
            var jeff = new Employee(idJeff, "Jeff Burton", 3879540.00m);
            employees[idJeff] = jeff;
            Console.WriteLine(jeff);

            while (true)
            {
                Console.Write("Enter employee id (X to exit) >");
                var userInput = Console.ReadLine();
                userInput = userInput.ToUpper();
                if (userInput == "X")
                    break;

                EmployeeId id;
                try
                {
                    id = new EmployeeId(userInput);

                    Employee employee;
                    if (!employees.TryGetValue(id, out employee))
                    {
                        Console.WriteLine("Employee with id {0} does not exist", id);
                    }
                    else
                    {
                        Console.WriteLine(employee);
                    }
                }
                catch (EmployeeException ex)
                {
                    Console.WriteLine(ex.Message);
                }
            }
        }
Ejemplo n.º 34
0
        static void Main()
        {
            var employees = new Dictionary<EmployeeId, Employee>(31);

              var idTony = new EmployeeId("C3755");
              var tony = new Employee(idTony, "Tony Stewart", 379025.00m);
              employees.Add(idTony, tony);
              Console.WriteLine(tony);

              var idCarl = new EmployeeId("F3547");
              var carl = new Employee(idCarl, "Carl Edwards", 403466.00m);
              employees.Add(idCarl, carl);
              Console.WriteLine(carl);

              var idKevin = new EmployeeId("C3386");
              var kevin = new Employee(idKevin, "Kevin Harwick", 415261.00m);
              employees.Add(idKevin, kevin);
              Console.WriteLine(kevin);

              var idMatt = new EmployeeId("F3323");
              var matt = new Employee(idMatt, "Matt Kenseth", 1589390.00m);
              employees[idMatt] = matt;
              Console.WriteLine(matt);

              var idBrad = new EmployeeId("D3234");
              var brad = new Employee(idBrad, "Brad Keselowski", 322295.00m);
              employees[idBrad] = brad;
              Console.WriteLine(brad);

              while (true)
              {
            Console.Write("Enter employee id (X to exit)> ");
            var userInput = Console.ReadLine();
            userInput = userInput.ToUpper();
            if (userInput == "X") break;

            EmployeeId id;
            try
            {
              id = new EmployeeId(userInput);

              Employee employee;
              if (!employees.TryGetValue(id, out employee))
              {
            Console.WriteLine("Employee with id {0} does not exist", id);
              }
              else
              {
            Console.WriteLine(employee);
              }
            }
            catch (EmployeeIdException ex)
            {
              Console.WriteLine(ex.Message);
            }
              }
        }
Ejemplo n.º 35
0
Archivo: CQRS.cs Proyecto: ravendb/docs
 public void CreateEmployee(EmployeeId id,
     FullName name,
     decimal initialSalary)
 {
     using (var session = _store.OpenSession())
     {
         var employee = new Employee(id, name,
             Address.NotInformed,
             initialSalary);
         session.Store(employee);
         session.SaveChanges();
     }
 }
Ejemplo n.º 36
0
        //DictionaryTest
        public static void DictionaryTest()
        {
            var employees = new Dictionary<EmployeeId,Employee>(31);

            var idKyle = new EmployeeId("T3755");
            var kyle = new Employee(idKyle,"Kyle Bush",5443890.00m);
            employees.Add(idKyle,kyle);
            Console.WriteLine(kyle);
        }
 public Employee(EmployeeId id, string name, decimal salary)
 {
     _id = id;
     _name = name;
     _salary = salary;
 }
Ejemplo n.º 38
0
Archivo: CQRS.cs Proyecto: ravendb/docs
 public Employee(EmployeeId id, FullName name, object notInformed, decimal initialSalary)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 39
0
Archivo: CQRS.cs Proyecto: ravendb/docs
 public bool IsRegistered(EmployeeId id)
 {
     return _store.DatabaseCommands.Head($"employees/{id}") != null;
 }
Ejemplo n.º 40
0
 public Employee(EmployeeId id, string name, decimal salary)
 {
     this.id = id;
     this.name = name;
     this.salary = salary;
 }
Ejemplo n.º 41
0
Archivo: CQRS.cs Proyecto: ravendb/docs
 public void RaiseSalary(EmployeeId id, decimal amount) { /* implementation omitted */ }
Ejemplo n.º 42
0
Archivo: CQRS.cs Proyecto: ravendb/docs
 public void UpdateHomeAddress(EmployeeId id, Address homeAddress) { /* implementation omitted */ }