Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions ContosoApp/DisplayPets.cs

This file was deleted.

45 changes: 0 additions & 45 deletions ContosoApp/NewBusinessLogic.cs

This file was deleted.

28 changes: 10 additions & 18 deletions ContosoApp/Pet.cs
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ContosoApp;

namespace ContosoApp
public sealed class Pet
{
public class Pet
{
// Defining private properties to encapsulate the data accessibility
public string? AnimalID { get; set; }
public string? AnimalSpecies { get; set; }
public string? AnimalAge { get; set; }
public string? AnimalPhysicalDescription { get; set; }
public string? AnimalPersonalityDescription { get; set; }
public string? AnimalNickname { get; set; }
public int? AnimalAge { get; set; }
public string? AnimalId { get; set; }
public string? AnimalNickname { get; set; }
public string? AnimalPersonalityDescription { get; set; }
public string? AnimalPhysicalDescription { get; set; }
public string? AnimalSpecies { get; set; }

public override string ToString() => $"{AnimalID} {AnimalSpecies} {AnimalAge} {AnimalPhysicalDescription} {AnimalPersonalityDescription} {AnimalNickname}";

}
public override string ToString()
=> $"{AnimalId} {AnimalSpecies} {AnimalAge} {AnimalPhysicalDescription} {AnimalPersonalityDescription} {AnimalNickname}";
}
11 changes: 2 additions & 9 deletions ContosoApp/PetID.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ContosoApp;

namespace ContosoApp
{
public record struct PetWithID(string Id, Pet Pet);
}
public record struct PetWithID(string Id, Pet Pet);
Loading