Skip to content

Commit

Permalink
Fixed compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmarbach committed Nov 4, 2014
1 parent 4ae1345 commit c17fc91
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions ContactManagementBC/ContactManagement.Models/Model/Contact.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public class Contact : WritableEntity {

Source = source;
PrimaryAddress = Address.DefaultAddress();
Events = new List<IDomainEvent>();
}

//Entity Framework concession, also for JSON.Net
Expand All @@ -26,8 +25,6 @@ public class Contact : WritableEntity {
public String Source { get; private set; }
public Address PrimaryAddress { get; private set; }

public ICollection<IDomainEvent> Events { get; set; }

public static Contact Create(Name name, string source) {
return new Contact(name, source);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class PublishToRabbitMqTests {
try {
repo.PersistChangeToContact(contact);
}
catch (DbUpdateConcurrencyException ex) {
catch (DbUpdateConcurrencyException) {
//swallow this exception so we can be sure that when it happens, the message won't get pushed into the queue
}

Expand Down
1 change: 0 additions & 1 deletion OrderManagementBC/SalesDomainModel/Customer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ public class Customer : WritableEntity {

}

public ICollection<IDomainEvent> Events { get; private set; }
public Guid ContactId { get; private set; }
//don't map contact property in EF
public Contact Contact { get; private set; }
Expand Down
1 change: 0 additions & 1 deletion OrderManagementBC/SalesDomainModel/Product.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ namespace SalesDomain {
//populated from service
//reference context in EF
public class Product : ReadOnlyEntity {
public Guid Id { get; private set; }
public string Name { get; private set; }
public string ProductNumber { get; private set; }
public ProductColor Color { get; private set; }
Expand Down

0 comments on commit c17fc91

Please sign in to comment.